ad1. meta_values are strings, so they are ordered like strings, not dates.
In SQL you should use some casting as a DATE before ordering
ad2. better date format would be yyyy-mm-dd, because sorting this meta field like strings gives the same results as date-type column..
compare order of dates in yyyy-mm-dd
2010-03-06
2012-06-05
and the same dates in dd-mm-yyyy
05-06-2012
06-03-2010
both are sorted (ASC), but the first example is in correct order.
Related Posts:
- Change order of posts
- query posts custom field calculation value
- WP Query – Is this correct?
- WP_Query – Order results by meta value
- Custom query with orderby meta_value of custom field
- Query Posts or Get Posts by custom fields, possible?
- ORDER BY custom field value
- Sort posts by custom field numeric value using dropdown
- query_posts and only show results if a custom field is not empty
- Filter archive.php by custom meta
- Trying to perform complex custom field query with order by set to field value
- Order Posts by Closest Numeric Values
- Is there a way to do multiple ordering on a multiple meta_query?
- Order posts by custom field and if custom field is empty return remaining posts
- Order by custom field date with ASC order
- Order Custom post type loop by custom field (datepicker)
- Sorting within nested queries / multiple meta keys
- Ordering posts by anniversary using only day and month
- Order by Custom Field date not recognized
- Comments form custom fields order
- If value present, order posts by two consecutive custom fields
- Query on custom field count?
- How to use query_posts() with a date filter on a custom field?
- Display custom post types with custom date field value (before today) & order by custom date field
- Sorting posts by multiple values, combined
- meta_value_num sort glitch
- Can ordering post list by meta_value cause performance issue?
- Order by value in serialized custom field
- Author Page Custom Query WHERE author OR [post meta value] OR [post meta value]
- How do I query for a post by custom field?
- meta query not showing any results?
- Sorting posts by custom fields in meta_query
- how can i use custom field in query post
- using multiple meta_key and meta_value in query_posts
- Query post order by post and desc not working
- How can I sort homepage by a meta value?
- Order query by meta_value with multiple custom fields
- Show 1 post and after a specific date show the next one
- How to select posts from multiple categories and metavalues?
- meta_compare seems to be treating values as strings instead of integers as expected
- Order RSS content by an advanced custom field value
- Alter main archive, to show posts with meta as last
- Trying to sort and display categories(not posts) by custom field: ‘order’
- Meta query with multiple custom fields for archives page ordering problem
- filter custom field values $min $max
- Ordering posts by custom field named “date” in backend
- Query_posts with custom field meta value
- Using abs() with custom field in orderby statement
- Unable to get specific value from post meta
- ORDER BY custom field value out of where clause
- Sortable Custom Columns not sorting correct
- Meta_query ‘compare’ => ‘LIKE’ not working?
- query_posts with meta_value
- Custom search SQL Query to add custom field in result
- How to put forward a blog post
- How can I change the publish date based on a custom field?
- Order custom fields alphabetically
- Ordering by ‘Title’ OR ‘Custom Field’
- Get author total post votes from post meta
- How to query posts by month based on date custom field?
- simple fields plugin custom query
- Ordering by ACF custom field vaule
- Sort by an ACF field in a tax_query
- WordPress Admin – Automatically Sort Custom Posts by Custom Field Date Value in d-m-Y Fomat
- (woocommerce) How to get product id form order id & then retrieve custom meta linked to product?
- query_posts -> get page_id from custom field
- How to properly get popular Posts by multiple Values
- query_posts with sorting on a custom datestamp
- Order a query by meta_value and then by post_date
- Order by custom field in query multiple
- Transfer taxonomy to custom field
- Checking if field is set before comparing with meta_query in query_posts?
- Filtering posts by WORD in custom field
- Display agents (custom post type) alphabetically, except one who always shows last
- Filter Query Post by Custom Fields(by date)
- Can’t sort custom column on user.php by number / meta_value_num?
- How can I avoid re-inventing the Custom Fields wheel in my Plugin’s Metabox?
- Does wordpress have something like content-type?
- How to get and edit custom fields if in Quick Edit
- Create custom field on post draft or publish?
- WP_Meta_Query causing long-running MySQL queries
- How to validate custom field on lost password form before the user id field?
- Woocommerce: Custom fields and email shortcodes, ec_custom_field
- Tweak Meta for Post to work it for Pages also
- Adding an editable field to template?
- Transferring author information from a custom field to a proper author
- Linking Custom Fields to Database Records
- Stop sending email everytime I updates my post
- Best way to store everyday post views?
- Show custom field on attachment page?
- custom comment_form fields not displaying
- WP_Query () using taxonomy, custom post types
- Order by custom date field
- Group Posts By Custom Meta Value: Date
- Custom Field: how to save array of multiple key-values in WordPress
- Show Custom Taxonomy as Headline for related posts
- display Flexible Fields from options
- How to filter post using custom feild value in shortest and longest duration?
- Advenced custom fields auto fill problem
- Dynamically update Custom Fields to display new dates