Title: jakehower's Replies | WordPress.org

---

# jakehower

  [  ](https://wordpress.org/support/users/jakehower/)

 *   [Profile](https://wordpress.org/support/users/jakehower/)
 *   [Topics Started](https://wordpress.org/support/users/jakehower/topics/)
 *   [Replies Created](https://wordpress.org/support/users/jakehower/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/jakehower/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/jakehower/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/jakehower/engagements/)
 *   [Favorites](https://wordpress.org/support/users/jakehower/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Advanced Queries] Dynamic OrderBy Field ordering incorrectly](https://wordpress.org/support/topic/dynamic-orderby-field-ordering-incorrectly/)
 *  Thread Starter [jakehower](https://wordpress.org/support/users/jakehower/)
 * (@jakehower)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/dynamic-orderby-field-ordering-incorrectly/#post-16939848)
 * ChatGPT is telling me:
 * The issue you’re encountering is due to the fact that your custom field values
   are being treated as strings rather than integers. When treated as strings, the’
   10’ comes before ‘2’ because ‘1’ is less than ‘2’.
 * For now I’ve added 0 before the lower numbers and it seems to be sorting correctly.
   
   Maybe a consideration to add a sort via integer if the field is as such?

Viewing 1 replies (of 1 total)