[Resolved] sort by a number field with query_posts
I am trying to sort a query by a custom field. The cf is a single cf and it contains numbers.
For some reason when i try to sort some posts by that number field, it handles the fields as text fields and the order result is wrong.
I have 3 posts with the following numbers in that field
The ASC ordered result is:
This is inappropriated to my purpose. I need the correct order by number like:
Any idea to fix this? Maybe even quick & dirty.
- The topic ‘[Resolved] sort by a number field with query_posts’ is closed to new replies.