Your date should be stored in descending units, like yyyy-mm-dd hh:mm:ss
for MySQL to be able to sort on the field.
See the MySQL docs for Date, Datetime, and Timestamp data types.
Related Posts:
- visually sort ordering “custom post types” for end users
- Custom Table Column Sortable by Taxonomy Query
- How do I allow users to sort posts? [duplicate]
- Sorting results from JSON-API on custom fields
- Sort users in get_users() in custom order
- Sort by custom field value
- How to sort posts with the first 2 or 3 by latest, and the rest is random?
- Get “wp_get_nav_menu_items” to sort alphabetically [duplicate]
- Ascending sort order for monthly & category view, i.e. ?m=201204, ?cat=4
- Adding Sorting to Website?
- Sorting by tag or category
- get_terms orderby name as numbers
- Creating a category page by alphabet
- Sorting get_post_ancestors array
- wordpress custom_meta ordering of timestamps
- Multi-level ordering in WordPress
- Sorting for custom column in WordPress admin post table
- Help alphabetically sorting $terms from get terms(‘wpsc_product_category’
- Vertical alphabetically post columns
- Advanced custom fields sort repeater by date
- Displaying posts sorting by a custom criterion
- Sorting custom post type by usermeta
- Sort posts by meta key that is serialised with other meta keys
- orderby field – list of available options?
- User Query sort on custom field then name
- WP Query sort by meta value
- Best Practices for a Completely Customizable Homepage – without plugins
- How do I create a sort capability by Title, Category, Author, Date?
- How to avoid duplicating same meta_value?
- Sorting/Filter posts from front-end in WordPress blog
- ‘sort_column’ => ‘menu_order’ not working
- Sort scheduled posts in ascending order by default
- How to sort by number
- sort items by randomness
- inner foreach loop sorting
- Sortby parameter to sort users
- Update meta_key value for a page
- Sort my event calendar by date
- Table Sorter sort by span title?
- make two custom columns sortables
- How to display remaining post ( in post__in ) if posts are less then post per page?
- ACF pro: Group teaser by datepicker year and display custom sub fields [closed]
- Sorting in WP_List_Table class
- Sort an array with an ACF meta key
- display wordpress user who published a pending post of another user
- Static front page and orderby
- Advanced sorting of content in wordpress [closed]
- Sort posts by first content letter
- Grouping posts starting with same letter
- Getshopped (WP-e-commerce): show all protucts on one admin page for drag-and-drop ordering [closed]
- List CPT by menu_order with children right after parent
- Multidimensional array sort?
- How can users sort multiple pages?
- How do i Sort my Posts
- How to resort my id in wordpress?
- Orderby meta_value only returns posts that have existing meta_key
- initial sort order for a sortable custom column in admin
- How to get Page/Post Gallery attachment images in order they are set in backend using WP_Query()?
- How can I set a default listing order on the admin page for a custom taxonomy? (without plugins)
- How to sort a table of custom posts by column containing custom field
- Reorder plugin items in the admin menu
- query_posts sort in multiple directions
- Plugin for sortable posts in grid [closed]
- Customize the Sorting Dropdown in WooCommerce
- Woocommerce custom loop to show all the products [closed]
- Sorting Grids with Essential Grid and Events Manger
- Using database meta_values to calculate new post order using pre_get_posts or a ‘request’ hook
- Sort posts by newest child while keeping hierarchy intact
- Order posts using a custom array
- Ordering of gallery images without using shortcode in theme
- lock meta box position on post edit screen for contributors
- Nesting if statements to echo only one string based on what tag was filtered?
- Control attachments menu order with jQuery Sortable
- Sort alphabetically by custom field
- Custom taxonomy/category order
- Sort by site/blog column in Multisite
- wp e-commerce sort by stock [closed]
- Does wp track views for posts?
- how to get post order by post id wp_query?
- ORDER BY custom field value out of where clause
- Order BY Most Liked And Published Between Previous Week Monday And Next Week Monday
- Creating a “glossary” of WordPress posts of a specific post type
- How to tag the main tag? [closed]
- Removing custom sort order from admin page listing
- Order by modified date working in POSTS but not PAGES
- Re-sort get_posts query results
- How To Show Get Adjacent Posts If Posts Are Sorted By Custom Field
- Natural sort / ordering wp_dropdown_categories
- How to list post as buch of category, and all of them
- Sort users by meta key value even if meta key not present for all users
- Custom Woocommerce Product Query
- Admin user column sort by numeric meta key
- Move some posts to end of sort order, even if there is a sort in the wp_Query already
- Custom post type order by post_title
- sorting in wp query based on custom field value
- How to change custom post order ASC/DESC menu_order wise dynamically?
- Sorting posts to make those with post thumbnail show up first
- Sort posts by title, sort array by largest number [duplicate]
- WordPress – show all posts + ones with specific tag
- Custom order of CPT posts by title, in wp-admin area by default