# Issue with Index Sort -- The sort should work just as fast in either direction

**URL:** <https://discuss.elastic.co/t/issue-with-index-sort-the-sort-should-work-just-as-fast-in-either-direction/192131>\
**Category:** Elasticsearch\
**Created:** [July 24, 2019, 8:25pm UTC](https://discuss.elastic.co/t/issue-with-index-sort-the-sort-should-work-just-as-fast-in-either-direction/192131 "2019-07-24T20:25:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Baumgartner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jason_baumgartner/32/92716_2.png) [@Jason\_Baumgartner](https://discuss.elastic.co/u/Jason_Baumgartner)\
**Post date:** [July 24, 2019, 8:25pm UTC](https://discuss.elastic.co/t/issue-with-index-sort-the-sort-should-work-just-as-fast-in-either-direction/192131/1 "2019-07-24T20:25:06Z")

</div>

This refers to this new feature that began in ES 6.x: [https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-index-sorting.html](https://www.elastic.co/guide/en/elasticsearch/reference/master/index-modules-index-sorting.html)

I'm not sure if this is a Lucene issue or Elasticsearch issue, but sorting on a sorted index in the opposite direction should be nearly as fast as sorting on the same direction.

What I'm noticing is that if I set the sort direction to "desc" on a specific field, searches using that field and sort direction are extremely fast, but sorting on that same field with "asc" is much slower.

If Lucene is already holding a sorted index (regardless of sort direction), sorting in the opposite direction should be nearly as fast as sorting in the same sort direction of the actual index.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 21, 2019, 8:25pm UTC](https://discuss.elastic.co/t/issue-with-index-sort-the-sort-should-work-just-as-fast-in-either-direction/192131/2 "2019-08-21T20:25:14Z")

</div>

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