# Reset Sort in table

**URL:** <https://forums.pega.com/t/reset-sort-in-table/3642>\
**Category:** User Experience\
**Tags:** 8-5-6, user-experience\
**Created:** [December 12, 2022, 7:51pm UTC](https://forums.pega.com/t/reset-sort-in-table/3642 "2022-12-12T19:51:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adithya\_Acharya](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/adithya_acharya/32/7058_2.png) [@Adithya\_Acharya](https://forums.pega.com/u/Adithya_Acharya)\
**Post date:** [December 12, 2022, 7:51pm UTC](https://forums.pega.com/t/reset-sort-in-table/3642/1 "2022-12-12T19:51:06Z")

</div>

In Repeating grid (Table) , Once the data sorted in ASC/DESC order there is no way to reset the sort order back to original form ,below is a sample use case and attached is the screens for reference.

1. Initial Data sorted based on ID parameter which is not shown in UI. This is 3 column(Country,State and County) table structure
2. User Clicks State Column and its sorted in Ascending Order
3. User click again and its sorted in Descending order.

**Issue** : Once the user sorts the data on any column there is no way to reset the sort order back to the original form

**Note** : OOTB refresh button provided in the “Optimized Table” is not working

**Solution Tried** : Create custom button to refresh the section to reset the order.

Is there any OOTB solution/configuration for this ?

[Reset Sort Order.docx](https://forums.pega.com/uploads/short-url/mIpKRZwUMX9SNvUbS7m2XJRF52G.docx) (334 KB)

---

<div class="post-metadata">

**Author:** ![D.Jihed](https://avatars.discourse-cdn.com/v4/letter/d/da6949/32.png) [@D.Jihed](https://forums.pega.com/u/D.Jihed)\
**Post date:** [December 14, 2022, 5:47pm UTC](https://forums.pega.com/t/reset-sort-in-table/3642/2 "2022-12-14T17:47:59Z")

</div>

@Adithya_Acharya Hi,  
the optimized table might be the solution: you can create a view for each situation depending of your configuration of the sort and then you can get back to you default view if you personnalize the optimized table.
