# Ordering ES Document Fields like SQL

**URL:** <https://discuss.elastic.co/t/ordering-es-document-fields-like-sql/168823>\
**Category:** Elasticsearch\
**Created:** [February 18, 2019, 12:18pm UTC](https://discuss.elastic.co/t/ordering-es-document-fields-like-sql/168823 "2019-02-18T12:18:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [February 18, 2019, 1:15pm UTC](https://discuss.elastic.co/t/ordering-es-document-fields-like-sql/168823/4 "2019-02-18T13:15:03Z")

</div>

So I'm unsure I understand what problem do you have with elasticsearch.  
I mean that if you save all that information using a JSON document, then `_source` field is stored exactly as you send it...

If my answer is incorrect, could you provide a full recreation script as described in [About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

---

_[View the full topic](https://discuss.elastic.co/t/ordering-es-document-fields-like-sql/168823)._
