# Default sorting

**URL:** <https://discuss.elastic.co/t/default-sorting/7962>\
**Category:** Elasticsearch\
**Created:** [June 4, 2012, 9:51am UTC](https://discuss.elastic.co/t/default-sorting/7962 "2012-06-04T09:51:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ywtsang](https://avatars.discourse-cdn.com/v4/letter/y/a698b9/32.png) [@ywtsang](https://discuss.elastic.co/u/ywtsang)\
**Post date:** [June 4, 2012, 9:51am UTC](https://discuss.elastic.co/t/default-sorting/7962/1 "2012-06-04T09:51:01Z")

</div>

I have specified "sorting" when querying my documents. But when some  
documents share the same "sorting value", then what is the sorting  
order?

I expect it is the "id" field of es document as if I used lucene  
natively in the past, but it is not for es result. Or do I need to  
specify the "default" sorting as "id" field explicitly every time I do  
querying?

Thanks,  
Wing

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 8, 2012, 12:23pm UTC](https://discuss.elastic.co/t/default-sorting/7962/2 "2012-06-08T12:23:14Z")

</div>

There is no additional order defined, unless you specify an additional  
field to sort by.

On Mon, Jun 4, 2012 at 11:51 AM, Yiu Wing TSANG [ywtsang@gmail.com](mailto:ywtsang@gmail.com) wrote:

> I have specified "sorting" when querying my documents. But when some  
> documents share the same "sorting value", then what is the sorting  
> order?
> 
> I expect it is the "id" field of es document as if I used lucene  
> natively in the past, but it is not for es result. Or do I need to  
> specify the "default" sorting as "id" field explicitly every time I do  
> querying?
> 
> Thanks,  
> Wing

---

<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:25am UTC](https://discuss.elastic.co/t/default-sorting/7962/3 "2017-07-06T03:25:11Z")

</div>


