Title: custom variable in slider doesn&#8217;t sort
Last modified: June 2, 2021

---

# custom variable in slider doesn’t sort

 *  Resolved [sander105](https://wordpress.org/support/users/sander105/)
 * (@sander105)
 * [5 years ago](https://wordpress.org/support/topic/custom-variable-in-slider-doesnt-sort/)
 * Hi, so i recently got the PRO version of the Woobewoo product filter.
    So i got
   the PRO version to use custom variables and put them in a slider, but it doesn’t
   work how I expected it to. I have a variable called “depth” and contains a lot
   of different values from like 30 up to 110. But for some reason it doesn’t put
   the values in order in the slider. And i also put sorting option to ASC. Anybody
   know how to fix this issue?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [WBW Plugins](https://wordpress.org/support/users/woobewoo/)
 * (@woobewoo)
 * [5 years ago](https://wordpress.org/support/topic/custom-variable-in-slider-doesnt-sort/#post-14513899)
 * hello [@sander105](https://wordpress.org/support/users/sander105/),
 * [http://joxi.ru/brRxepocOwkLD2](http://joxi.ru/brRxepocOwkLD2) – Enable this 
   option.
 * Attributes are formatted as text data.
    In order for the sorting to work correctly
   in this case, you need to convert the attributes into digital data.
 * More: [https://woobewoo.com/documentation/attribute-filter-settings/](https://woobewoo.com/documentation/attribute-filter-settings/)
 *  Thread Starter [sander105](https://wordpress.org/support/users/sander105/)
 * (@sander105)
 * [5 years ago](https://wordpress.org/support/topic/custom-variable-in-slider-doesnt-sort/#post-14515460)
 * Hi, thanks for the reply! I got a little further, and now know whats going wrong.
   in the different depths, i sometimes use decimals with a comma instead of a dot.
   
   so for example: in the slider it would show 1265, but the actual value is 126,5.
   is there a way to fix this without having to change all the variables from comma
   to a dot? Thanks!
 *  Plugin Author [WBW Plugins](https://wordpress.org/support/users/woobewoo/)
 * (@woobewoo)
 * [5 years ago](https://wordpress.org/support/topic/custom-variable-in-slider-doesnt-sort/#post-14519860)
 * Hi,
 * It is better, of course, to bring everything to a single format.
    But we will
   make a fix for such a case in one of the next updates.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘custom variable in slider doesn’t sort’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/woo-product-filter_a0a6df.svg)
 * [Product Filter for WooCommerce by WBW](https://wordpress.org/plugins/woo-product-filter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woo-product-filter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woo-product-filter/)
 * [Active Topics](https://wordpress.org/support/plugin/woo-product-filter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woo-product-filter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woo-product-filter/reviews/)

## Tags

 * [product filter](https://wordpress.org/support/topic-tag/product-filter/)
 * [shop filter](https://wordpress.org/support/topic-tag/shop-filter/)
 * [WooCommerce Filter](https://wordpress.org/support/topic-tag/woocommerce-filter/)

 * 3 replies
 * 2 participants
 * Last reply from: [WBW Plugins](https://wordpress.org/support/users/woobewoo/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/custom-variable-in-slider-doesnt-sort/#post-14519860)
 * Status: resolved