# Permanent timestamp retrieval ordering; without explicit sort

**URL:** <https://discuss.elastic.co/t/permanent-timestamp-retrieval-ordering-without-explicit-sort/25904>\
**Category:** Elasticsearch\
**Created:** [July 20, 2015, 12:21pm UTC](https://discuss.elastic.co/t/permanent-timestamp-retrieval-ordering-without-explicit-sort/25904 "2015-07-20T12:21:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian\_Bartlett](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Adrian\_Bartlett](https://discuss.elastic.co/u/Adrian_Bartlett)\
**Post date:** [July 20, 2015, 12:21pm UTC](https://discuss.elastic.co/t/permanent-timestamp-retrieval-ordering-without-explicit-sort/25904/1 "2015-07-20T12:21:56Z")

</div>

I have timeseries data and I always want query results to be in timestamp order. I don't want the overhead of explicitly sorting the results on timestamp; for every query; if possible. Is it possible to permanently order my records in timestamp order?

---

<div class="post-metadata">

**Author:** ![Adrian\_Bartlett](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@Adrian\_Bartlett](https://discuss.elastic.co/u/Adrian_Bartlett)\
**Post date:** [July 23, 2015, 1:25am UTC](https://discuss.elastic.co/t/permanent-timestamp-retrieval-ordering-without-explicit-sort/25904/2 "2015-07-23T01:25:39Z")

</div>

For other people looking for the same thing. The answer is Field Data Cache or Doc Values.

Read about it here: [https://engineering.opendns.com/2015/05/12/elasticsearch-you-know-for-logs-part-3/](https://engineering.opendns.com/2015/05/12/elasticsearch-you-know-for-logs-part-3/)

---

<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 5, 2017, 11:59pm UTC](https://discuss.elastic.co/t/permanent-timestamp-retrieval-ordering-without-explicit-sort/25904/3 "2017-07-05T23:59:47Z")

</div>


