# How to make returned hits ordered by \_id?

**URL:** <https://discuss.elastic.co/t/how-to-make-returned-hits-ordered-by--id/6727>\
**Category:** Elasticsearch\
**Created:** [February 16, 2012, 7:43am UTC](https://discuss.elastic.co/t/how-to-make-returned-hits-ordered-by--id/6727 "2012-02-16T07:43:43Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaofeng](https://avatars.discourse-cdn.com/v4/letter/x/f05b48/32.png) [@xiaofeng](https://discuss.elastic.co/u/xiaofeng)\
**Post date:** [February 16, 2012, 7:43am UTC](https://discuss.elastic.co/t/how-to-make-returned-hits-ordered-by--id/6727/1 "2012-02-16T07:43:43Z")

</div>

I found returned hits with the same score are not ordered by \_id. Applying sorting on \_id field can surely deal with this, but degrades query performance especially under heavy concurrency.

Is there any way to make the return hits order by \_id, without using sorting?

---

<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:** [July 6, 2017, 3:39am UTC](https://discuss.elastic.co/t/how-to-make-returned-hits-ordered-by--id/6727/2 "2017-07-06T03:39:09Z")

</div>


