# Sort by date

**URL:** <https://discuss.elastic.co/t/sort-by-date/32828>\
**Category:** Elasticsearch\
**Created:** [October 23, 2015, 8:40am UTC](https://discuss.elastic.co/t/sort-by-date/32828 "2015-10-23T08:40:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kodermax](https://avatars.discourse-cdn.com/v4/letter/k/9d8465/32.png) [@kodermax](https://discuss.elastic.co/u/kodermax)\
**Post date:** [October 23, 2015, 8:40am UTC](https://discuss.elastic.co/t/sort-by-date/32828/1 "2015-10-23T08:40:46Z")

</div>

I'd like to sort my field by date, i make mapping { 'field' : {'type':'date'}  
it's field must analyzed or not\_analyzed?

---

<div class="post-metadata">

**Author:** ![Ivan](https://avatars.discourse-cdn.com/v4/letter/i/df788c/32.png) [@Ivan](https://discuss.elastic.co/u/Ivan)\
**Post date:** [October 23, 2015, 5:31pm UTC](https://discuss.elastic.co/t/sort-by-date/32828/2 "2015-10-23T17:31:58Z")

</div>

Analysis only applies to text fields that need to go through the analysis  
chain. The field needs to simply be indexed, which is the default.

Ivan

---

<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:42pm UTC](https://discuss.elastic.co/t/sort-by-date/32828/3 "2017-07-05T23:42:57Z")

</div>


