Title: Sort fail
Last modified: May 13, 2021

---

# Sort fail

 *  [denizhan486](https://wordpress.org/support/users/denizhan486/)
 * (@denizhan486)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sort-fail/)
 * Hello, It is a small plugin but it works very well, but it sorts the numerical
   values ​​as if they were alphabetical, while Woocommerce stretches in the order
   I want in the original attribute filter, in this plugi;
    100 1001 1100 200 like.
   How can I solve this sorting problem?

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

 *  Plugin Author [Pektsekye](https://wordpress.org/support/users/pektsekye/)
 * (@pektsekye)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sort-fail/#post-14434949)
 * Hello,
 * Try to replace the line:
 *     ```
        ORDER BY terms.name";
       ```
   
 * with:
 *     ```
        ORDER BY cast(terms.name as unsigned)";
       ```
   
 * in the file:
    /wp-content/plugins/attribute-dropdowns/Model/Selector.php
 * Stanislav
 *  Thread Starter [denizhan486](https://wordpress.org/support/users/denizhan486/)
 * (@denizhan486)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/sort-fail/#post-14435106)
 * I made it thanks to you

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

The topic ‘Sort fail’ is closed to new replies.

 * ![](https://ps.w.org/attribute-dropdowns/assets/icon-256x256.png?rev=2132522)
 * [Attribute Dropdowns](https://wordpress.org/plugins/attribute-dropdowns/)
 * [Support Threads](https://wordpress.org/support/plugin/attribute-dropdowns/)
 * [Active Topics](https://wordpress.org/support/plugin/attribute-dropdowns/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/attribute-dropdowns/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/attribute-dropdowns/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [denizhan486](https://wordpress.org/support/users/denizhan486/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/sort-fail/#post-14435106)
 * Status: not resolved