you need to use
'orderby' => 'meta_value_num',
also if you are ordering dates, the best advice is to put them in an easy to order way such as 2012-12-31
Related Posts:
- What is the most efficient way of querying posts based on visits and date for current day?
- Query Custom Meta Value with Increment
- Pull post meta with post_query?
- WordPress query posts with multiple post_meta data
- WP_Query meta compare must include ALL array values
- Query against multiple locations within single custom post type post
- I need query_posts() to order results first by a meta value and then by post ID
- WP_Query with child element
- How to get several fields from wp_query?
- How to query post ids liked by the Author
- query by meta value then date and not empty meta value
- Query posts by meta value and sort by another meta key
- How to get posts that have certain meta key value and order based on another meta key’s value
- When should you use WP_Query vs query_posts() vs get_posts()?
- How to only display posts whose meta_value field is not empty?
- Can wp_query return posts meta in a single request?
- Wp get all the sub pages of the parent using wp query
- How do I query for posts by partial meta key?
- Return only Count from a wp_query request?
- Use REGEXP in WP_Query meta_query key
- How to query for most viewed posts and show top 5
- WordPress retrieving meta data for all custom post types in list view
- WP_Query vs get_posts
- Order by optional meta key?
- meta_query: using BETWEEN with floats and/or casting to DECIMAL
- WP_Comment_Query pagination, delving into the unknown
- Usage of the new “posts_clauses” filter in WordPress 3.1?
- Reduce or prevent calling of update_meta_cache
- Make a WP Query search match exactly the search term
- WP_Query: query posts by ids from array?
- Is there a way to extend WP_query so Custom Post Types can have properties?
- Changing the meta_query of the main query based on custom query_vars and using pre_get_posts
- Sort posts by category name and title
- How to uniquely identify queries?
- Custom WP_Query order by post_meta and (author) user_meta
- Query WooCommerce orders where meta data does not exist
- Getting attachments by meta value
- WP_Query for WooCommerce Products
- pre_get_posts with get_posts
- WP_Query displaying ALL posts
- meta_query where value is equal to given value
- author.php with ACF and CPTs
- WP-CLI How to generate a list of posts with corresponding meta values
- When should you use wp_reset_postdata vs wp_reset_query?
- Get posts by meta data OR title
- Identify which loop you are hooking into; primary or secondary?
- Perform query with meta_value date
- WP_Query ordered by custom field that is a date string?
- How to make an activities stream mixing posts and comments?
- Duplicate Queries
- How to query for a week using key => value WP_Query argument notation?
- Finding all results from database within 500 miles of the given latitude and longitude [closed]
- What is an efficient way to query based on post_meta?
- Show only oldest post by author
- Order posts by tags count?
- WP_Query not working as expected for attachments and custom meta_query
- SQL query equivalent to WP User Query
- Add and in the header while looping over custom query in page template
- How to get the posts published in last two days using WP_Query?
- How to count post meta key values for all posts in database
- Highlighting Sub topic in a post?
- Which custom query am I in and how can I access its properties & methods?
- How to count post type that has a particular term?
- Group posts by meta_key
- How should I use posts_where to change meta_value from a string to integer?
- Finding the next 5 posts
- How can I create a WP_Query that returns posts where one meta_value
- how to retrieve specific product attribute value in an sql query?
- WordPress altering my custom query, How to fix it?
- WP Meta Query for some meta (array) values
- WP Query post meta value
- Dynamically Override Fancy Title – Part II
- Would this post meta be better added to the post table rather than post_meta table
- Custom URl parameter
- Transient pagination not working properly
- query posts in functions.php and update a field
- Foreach-generated custom tax queries, each with an ajax “Load more” button
- Compile meta values from custom loop into array and then calculate sum total
- Can not switch the queried post in pre_get_posts hook
- How to get sum of meta_values of a meta_key in wp_query according to conditions
- how to fire join query with post_meta
- view queries made?
- Best approach to create Hot and Trending sections
- meta_query on a date range using an array of values
- WP_Query Performance Issues with meta_query
- WP_Query, custom sort and custom filter
- WordPress custom archive page
- How to speed up wp_query, took more 5s to run against 100k posts
- WP_query category__in not working, only pulls from first category
- How to detect custom query inside `posts_where` hook?
- Pass the same object to multiple widgets in a template with one query
- Is temporarily overwriting $wp_query a bad idea?
- Get the post permalink within the loop but without additional DB query
- Query Set Order By Author
- List the 5 most recent child pages
- Splitting the main query in multiple loops with query_posts and/or pre_get_posts?
- Retrieve or Query Pages by ID
- Order posts by meta value and Date
- Efficient way to update multiple post meta
- How do you query wordpress posts using a math formula between multiple meta field values?