# \[QUESTION\] What is the default sorting between ES 1.7.x and 7.x?

**URL:** <https://discuss.elastic.co/t/question-what-is-the-default-sorting-between-es-1-7-x-and-7-x/210100>\
**Category:** Elasticsearch\
**Created:** [December 2, 2019, 4:14am UTC](https://discuss.elastic.co/t/question-what-is-the-default-sorting-between-es-1-7-x-and-7-x/210100 "2019-12-02T04:14:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![joneslee85](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joneslee85/32/20980_2.png) [@joneslee85](https://discuss.elastic.co/u/joneslee85)\
**Post date:** [December 2, 2019, 4:14am UTC](https://discuss.elastic.co/t/question-what-is-the-default-sorting-between-es-1-7-x-and-7-x/210100/1 "2019-12-02T04:14:37Z")

</div>

I am working on migrating from ES 1.7 to 7.4. There is one issue I picked up that is related to sorting.

In ES 1.7, if returned documents share same `_score`, the results are seems to be ordered randomly. Whilst ES 7.4 would sort by `_id`.

Could any ES developer help confirm what is the rule that ES 1.7.x uses to sort in this case? Much thanks in advance.

---

<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:** [December 30, 2019, 4:14am UTC](https://discuss.elastic.co/t/question-what-is-the-default-sorting-between-es-1-7-x-and-7-x/210100/2 "2019-12-30T04:14:37Z")

</div>

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