# 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-its-property-in-multi-indices-approach/234113>\
**Category:** Elasticsearch\
**Created:** [May 25, 2020, 9:20am UTC](https://discuss.elastic.co/t/how-to-sort-the-indices-through-its-property-in-multi-indices-approach/234113 "2020-05-25T09:20:39Z")\
**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:** [May 25, 2020, 9:20am UTC](https://discuss.elastic.co/t/how-to-sort-the-indices-through-its-property-in-multi-indices-approach/234113/1 "2020-05-25T09:20:39Z")

</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 22, 2020, 9:20am UTC](https://discuss.elastic.co/t/how-to-sort-the-indices-through-its-property-in-multi-indices-approach/234113/2 "2020-06-22T09:20:46Z")

</div>

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