Title: Dynamic OrderBy Field problem with numeric data
Last modified: October 7, 2020

---

# Dynamic OrderBy Field problem with numeric data

 *  [Haroon Q. Raja](https://wordpress.org/support/users/hqraja/)
 * (@hqraja)
 * [5 years, 8 months ago](https://wordpress.org/support/topic/dynamic-orderby-field-problem-with-numeric-data/)
 * Hello,
 * The Dynamic OrderBy Field option seems to assume the field value data as strings,
   so if posts have the chosen field’s values as 1, 2, 4, 9, 13, 21 and I choose
   descending order, it shows posts in this order of chosen field values: 9, 4, 
   2, 21, 1, 13.
 * I understand that this is desired behavior for string data, but it doesn’t fit
   numeric data use cases.
 * Please provide another option that orders by a custom field using numeric data
   i.e. using ‘orderby’ => ‘meta_value_num’ instead of ‘orderby’ => ‘meta_value’.
 * Thanks.

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

 *  [mortoray](https://wordpress.org/support/users/mortoray/)
 * (@mortoray)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/dynamic-orderby-field-problem-with-numeric-data/#post-13855762)
 * I’m having this same issue. My field is marked as a “Numeric” type in Advanced
   Custom Fields, so I hoped it would do it automatically.
 *  [thinkshorts](https://wordpress.org/support/users/thinkshorts/)
 * (@thinkshorts)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/dynamic-orderby-field-problem-with-numeric-data/#post-13929565)
 * Same issue here. No reply. What’s going on
 *  Thread Starter [Haroon Q. Raja](https://wordpress.org/support/users/hqraja/)
 * (@hqraja)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/dynamic-orderby-field-problem-with-numeric-data/#post-14158361)
 * Any update on this?

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

The topic ‘Dynamic OrderBy Field problem with numeric data’ is closed to new replies.

 * ![](https://ps.w.org/advanced-post-queries/assets/icon-128x128.png?rev=2319579)
 * [Advanced Queries](https://wordpress.org/plugins/advanced-post-queries/)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-post-queries/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-post-queries/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-post-queries/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-post-queries/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Haroon Q. Raja](https://wordpress.org/support/users/hqraja/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/dynamic-orderby-field-problem-with-numeric-data/#post-14158361)
 * Status: not resolved