# Order of hits from match\_all?

**URL:** <https://discuss.elastic.co/t/order-of-hits-from-match-all/6739>\
**Category:** Elasticsearch\
**Created:** [February 17, 2012, 8:20pm UTC](https://discuss.elastic.co/t/order-of-hits-from-match-all/6739 "2012-02-17T20:20:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eric\_Jain](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eric_jain/32/834_2.png) [@Eric\_Jain](https://discuss.elastic.co/u/Eric_Jain)\
**Post date:** [February 17, 2012, 8:20pm UTC](https://discuss.elastic.co/t/order-of-hits-from-match-all/6739/1 "2012-02-17T20:20:04Z")

</div>

Does a match\_all query guarantee any kind of ordering (e.g. most  
recently added docs first), or do I need to sort explicitly?

---

<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:** [February 17, 2012, 10:37pm UTC](https://discuss.elastic.co/t/order-of-hits-from-match-all/6739/2 "2012-02-17T22:37:49Z")

</div>

You need to sort, there isn't any guarantee...

On Friday, February 17, 2012 at 10:20 PM, Eric Jain wrote:

> Does a match\_all query guarantee any kind of ordering (e.g. most  
> recently added docs first), or do I need to sort explicitly?

---

<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:38am UTC](https://discuss.elastic.co/t/order-of-hits-from-match-all/6739/3 "2017-07-06T03:38:53Z")

</div>


