# Multi fileds sort order

**URL:** <https://discuss.elastic.co/t/multi-fileds-sort-order/142732>\
**Category:** Kibana\
**Created:** [August 2, 2018, 9:45am UTC](https://discuss.elastic.co/t/multi-fileds-sort-order/142732 "2018-08-02T09:45:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![leexum](https://avatars.discourse-cdn.com/v4/letter/l/b77776/32.png) [@leexum](https://discuss.elastic.co/u/leexum)\
**Post date:** [August 2, 2018, 9:45am UTC](https://discuss.elastic.co/t/multi-fileds-sort-order/142732/1 "2018-08-02T09:45:54Z")

</div>

Because the timestamp is not precise enough, I want to set "offset" as secondary sort order field to sort the items which have same timestamp. I know Elasticsearch support this function by add this in query command:  
"sort": [  
{ "@timestamp" : {"order": "desc" }},  
{ "offset" : "desc" }  
]  
But I can‘t find any config options in Kibana to achieve such function. How can I do to set multi field sort order in Kibana?

---

<div class="post-metadata">

**Author:** ![Bill\_McConaghy](https://avatars.discourse-cdn.com/v4/letter/b/ed655f/32.png) [@Bill\_McConaghy](https://discuss.elastic.co/u/Bill_McConaghy)\
**Post date:** [August 6, 2018, 2:58pm UTC](https://discuss.elastic.co/t/multi-fileds-sort-order/142732/2 "2018-08-06T14:58:05Z")

</div>

Unfortunately Kibana does not currently support this. See this discussion and the linked Kibana issue: [Sort by multiple fields Kibana](https://discuss.elastic.co/t/sort-by-multiple-fields-kibana/66923/2)

---

<div class="post-metadata">

**Author:** ![leexum](https://avatars.discourse-cdn.com/v4/letter/l/b77776/32.png) [@leexum](https://discuss.elastic.co/u/leexum)\
**Post date:** [August 7, 2018, 8:56am UTC](https://discuss.elastic.co/t/multi-fileds-sort-order/142732/3 "2018-08-07T08:56:15Z")

</div>

Thanks, I really need this function in Kibana, can you tell me which file or folder in Kibana project I can find the code that control sort order feature? I want to try to add this function myself, because this funtion is really very important for me and my project. Thank you very much.

---

<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:** [September 4, 2018, 8:56am UTC](https://discuss.elastic.co/t/multi-fileds-sort-order/142732/4 "2018-09-04T08:56:23Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
