My query is GET /posts/post/_search?q=*
Body -
{
"sort":[{
"createDate":{"order":"desc"}
}]
}
As a response the dates 16/11/2018 and 8/11/2018 are not differentiated by sort in any way and their relative order remains same both in ascending and descending order.
Having a topic title that is a URL doesn't provide any info about what you are asking and is less likely to encourage people to assist you. You may want to edit that.
Your date formats all look basically the same. Regardless, dates sort according to the timeline, not the formatted version of the dates. Could you provide a large example of some string dates you have, and what order you want them to be in when sorting?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.