Title: SORT_NUMERIC
Last modified: October 30, 2025

---

# SORT_NUMERIC

 *  [Mapan Web Indonesia](https://wordpress.org/support/users/rsalafy/)
 * (@rsalafy)
 * [7 months, 1 week ago](https://wordpress.org/support/topic/sort_numeric/)
 * Please use sort numeric in this plugin.
 *     ```wp-block-code
       $data = ["1", "11", "2", "20", "3"];sort($data, SORT_NUMERIC);print_r($data);
       ```
   
 * So the result will be like this:
 *     ```wp-block-code
       Array(    [0] => 1    [1] => 2    [2] => 3    [3] => 11    [4] => 20)
       ```
   
 * Not like this:
 *     ```wp-block-code
       Array(    [0] => 1    [1] => 11    [2] => 2    [3] => 20    [4] => 3)
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsort_numeric%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

The topic ‘SORT_NUMERIC’ is closed to new replies.

 * ![](https://ps.w.org/list-custom-taxonomy-widget/assets/icon.svg?rev=1225454)
 * [List Custom Taxonomy Widget](https://wordpress.org/plugins/list-custom-taxonomy-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/list-custom-taxonomy-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/list-custom-taxonomy-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/list-custom-taxonomy-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/list-custom-taxonomy-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/list-custom-taxonomy-widget/reviews/)

## Tags

 * [sort](https://wordpress.org/support/topic-tag/sort/)

 * 0 replies
 * 1 participant
 * Last reply from: [Mapan Web Indonesia](https://wordpress.org/support/users/rsalafy/)
 * Last activity: [7 months, 1 week ago](https://wordpress.org/support/topic/sort_numeric/)
 * Status: not resolved