# Collaps sort

**URL:** <https://discuss.elastic.co/t/collaps-sort/142513>\
**Category:** Elasticsearch\
**Created:** [August 1, 2018, 8:59am UTC](https://discuss.elastic.co/t/collaps-sort/142513 "2018-08-01T08:59:25Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peteratef](https://avatars.discourse-cdn.com/v4/letter/p/7c8e57/32.png) [@peteratef](https://discuss.elastic.co/u/peteratef)\
**Post date:** [August 1, 2018, 8:59am UTC](https://discuss.elastic.co/t/collaps-sort/142513/1 "2018-08-01T08:59:26Z")

</div>

i have a simple way, i have 3 users, Peter, John, Micheal  
each one has more than one record, with timestamp  
i want to sort each one desc (according to his time stamp)  
and sort the results asc/desc  
for example john (3pm, 4 pm, and 9 pm)  
peter (1am, 4pm, 8 pm)  
so i want finally to be like  
john --\> 8  
peter --\> 9  
i tried collaps but it wasn't working fine,  
any help please

---

<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:** [August 29, 2018, 8:59am UTC](https://discuss.elastic.co/t/collaps-sort/142513/2 "2018-08-29T08:59:30Z")

</div>

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