I found my problem on the UI side (thanks to @CBroe) where by ajax response was being exposed to a jQuery library DataTable(), whose default ordering was sorting in alphabetical order. I set the ordering parameter to false as:
$("#someid").DataTable({"ordering":false});
And My results were displayed as I was willing to
Related Posts:
- Weird orderby => post__in issue
- Specify strict ‘order by’ in WordPress query
- When should you use WP_Query vs query_posts() vs get_posts()?
- When to use WP_query(), query_posts() and pre_get_posts
- Ignoring initial articles (like ‘a’, ‘an’ or ‘the’) when sorting queries?
- WP_Query orderby post__in remains ineffective in the Loop [closed]
- WP_Query orderby date not working
- How to use the_posts_navigation for wp_query and get_posts?
- WP_Query vs get_posts
- Order by optional meta key?
- Sorting: custom query with orderby meta_value_num THEN by title
- Order by DESC, ASC in custom WP_Query
- WP_Query order by multiple meta keys & fields
- meta_query: using BETWEEN with floats and/or casting to DECIMAL
- Get posts from Network (Multisite)
- How to order by post_status?
- Using get_posts vs. WP_Query
- Delete all posts from WordPress except latest X posts
- Secondary Sort (fallback) for WP_Query
- Query Posts in a Predefined Order
- Sanitation needed for WP_Query or get_posts calls?
- Differences Between WP_Query() and get_posts() for Querying Posts?
- How to get order of posts?
- Order posts by ID in the given order
- Get Recent Posts by Date in Multisite
- Custom WP_Query order by post_meta and (author) user_meta
- Sorting posts by custom date fields (non standard date format)
- get_posts with multiple categories
- get_template_part in for loop
- Use of caller_ get_ posts
- How-to exclude terms from the main query the most performant way?
- Is it possible to select against a post’s parent’s fields with WP_Query?
- Query all posts where meta value is empty
- How to order posts tag by tag?
- How do I order pages and categories by ID or name in the same query?
- Get posts by meta data OR title
- Get_post() with meta_key when compare is a date
- WP_Query ordered by custom field that is a date string?
- get_posts not finding argument: post_name
- Meta Query with date and time on the same Day before given time
- Get posts with condition on comment meta value
- WP_Query sort by comment meta data
- Order posts by tags count?
- Merge 2 args in one WP_Query and order it by date
- Orderby = none not working [duplicate]
- Function to check if author has posted within the last x days
- WP_query ‘orderby=none’ Problem
- Use post__in and post__not_in together?
- Order posts by date and then by custom field
- How to order a post type with meta_value_num and if meta_value_num does not exist then order by date
- What should I use, get_posts or wp_query for less CPU load?
- Revolution Slider Orderby Two Custom Fields
- Different Results with query(‘s=computer’) vs get_posts(‘s=computer’)?
- How to get post from all Blog Multisite to the Main Site?
- Order posts ascending with number in title
- List taxonomy terms plus their latest post ordered by post date
- Order by the results of a function with WP_query
- WP Query post meta value
- Get all posts without tags
- get_posts() seemingly ignoring post_type
- Can not switch the queried post in pre_get_posts hook
- How to order posts in wp_query by a meta_value of the corresponding author
- How to find out what “Blog pages show at most” is set to [duplicate]
- Count posts returned by get_posts in external PHP script
- Order by menu structure
- Trying to check and see if a post has a featured image outside of the main loop
- WP_query category__in not working, only pulls from first category
- WP_Query order by date in meta_value
- How to use order RAND() on WordPress?
- Show all parents and children in custom post type in right order
- SELECT * FROM $wpdb->posts WHERE ID > 160
- Ordering by meta_value AND date NOT WORKING with wp_query
- WP_Query orderby breaks when using AJAX?
- Order WP Query posts by custom order calculated from post meta values
- Custom Post order for homepage
- Meta query with order by another custom field
- Change default ordering of taxonomy terms – pre_get_terms
- Adding multiple post queries with parent and children to page – Best Way
- WordPress WP_Query orderby being overwritten
- WP_Query Order by Specific Post ID First
- Order Posts by meta value AND published date
- How can I pick a single post from the latest 3?
- Wp query orderby ‘title’ doesn’t work
- How do you Query posts with nothing in common?
- WP_Query, tax_query and term_meta: How to?
- How can I order Wp_Query hierarchically?
- Get posts for last working week in WP_Query
- How do I sort posts with multiple pages
- Sorting posts DESC based on the number of comments using WP_Query
- get_posts – get all posts by array of author
- Create a sitemap without a plugin – get parent pages only?
- Order WP_Query by multiple fields, subtracting them from one another
- Complex Orderby Parameters: How to query with multiple orderby parameters using meta_value_num?
- pre_get_posts order by not working
- Creating a custom search for a specific post type
- get_posts – find out if querystring was crap and fallback is used
- Get posts for which a custom field is not present, with get_posts
- Creating query to show which editor (classic or block) was last used to edit a post/page
- get_posts() not working with multiple statuses
- (Solved) WP_Query ($ args) -> How to sort letters and numbers within the same array