Specifying Sort field

I wonder why the sort isn't working the following query. I get the results in the same sequence for either of the queries below.

http://localhost:9200///_search?q=creatorId:admin&sort=dateLastEdited:desc
http://localhost:9200///_search?q=creatorId:admin&sort=dateLastEdited:asc

Thank you

Found the answer. The sort should be either asc or dsc not desc, as below.

http://localhost:9200///_search?q=creatorId:admin&sort=dateLastEdited:dsc
http://localhost:9200///_search?q=creatorId:admin&sort=dateLastEdited:asc

Thank you for your time.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.