# Apply a sort once a tab is clicked

**URL:** https://discuss.tryton.org/t/apply-a-sort-once-a-tab-is-clicked/6308
**Category:** Developer
**Created:** [June 30, 2023, 10:18am UTC](https://discuss.tryton.org/t/apply-a-sort-once-a-tab-is-clicked/6308 "2023-06-30T10:18:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Thibaut](https://discuss-cdn.tryton.org/letter_avatar_proxy/v4/letter/t/dfb087/32.png) [@Thibaut](https://discuss.tryton.org/u/Thibaut)
#### Post date: [June 30, 2023, 10:18am UTC](https://discuss.tryton.org/t/apply-a-sort-once-a-tab-is-clicked/6308/1 "2023-06-30T10:18:55Z")

</div>

Hi,  
I have a view with 2 tabs. Once I click on one of them, I would like to apply a filter + a sort. I am already applying the filter but is it also possible to sort directly once the tab is clicked ?  
For example, let’s say I am on the contract view. There are 2 tabs, “All” and “Recent”. In the “Recent” one, once clicked, there’s a filter by user id. The idea is to add a sort on the most recent modified or created contract by this user.

Thank you,  
Thibaut

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [June 30, 2023, 11:50am UTC](https://discuss.tryton.org/t/apply-a-sort-once-a-tab-is-clicked/6308/2 "2023-06-30T11:50:25Z")

</div>

Action window domain does not define an order so for now it is not possible.  
But I think it could be a good improvement: [Tryton - Get Involved](https://www.tryton.org/contribute#develop)
