# How to sort the indices through it’s property in multi Indices approach

**URL:** <https://discuss.elastic.co/t/how-to-sort-the-indices-through-it-s-property-in-multi-indices-approach/235274>\
**Category:** Kibana\
**Created:** [June 2, 2020, 5:42am UTC](https://discuss.elastic.co/t/how-to-sort-the-indices-through-it-s-property-in-multi-indices-approach/235274 "2020-06-02T05:42:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Muna](https://avatars.discourse-cdn.com/v4/letter/m/ea666f/32.png) [@Muna](https://discuss.elastic.co/u/Muna)\
**Post date:** [June 2, 2020, 5:42am UTC](https://discuss.elastic.co/t/how-to-sort-the-indices-through-it-s-property-in-multi-indices-approach/235274/1 "2020-06-02T05:42:54Z")

</div>

Hi, below is my query multi Indices approach. here i want to sort the 'abc\_class' by it's "classId" .

tried applying sort at the beginning it's not working. please advise.

GET \_all/\_search  
{  
"query": {  
"bool": {  
"should": [  
{  
"bool": {  
"filter": [  
{  
"terms": {  
"\_index": [  
"abc\_class"  
]  
}  
}  
]  
}  
}  
]  
}  
}  
}

---

<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:** [June 30, 2020, 5:42am UTC](https://discuss.elastic.co/t/how-to-sort-the-indices-through-it-s-property-in-multi-indices-approach/235274/2 "2020-06-30T05:42:59Z")

</div>

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