HC200ok / vue3-easy-data-table

A customizable and easy-to-use data table component made with Vue.js 3.x
MIT License
536 stars 105 forks source link

Default first click sorting order #318

Open warflash opened 1 year ago

warflash commented 1 year ago

As mentioned in https://github.com/HC200ok/vue3-easy-data-table/issues/47#issuecomment-1167207468, the default cycle of sort orders is asc -> desc -> none. I'm wondering whether there is a way to customize that behaviour as for our application > 80% of usecases are interested in descending order, forcing users to do one extra click. It's not the end of the world but it could be a nice quality of life change 😊

steves-hes commented 11 months ago

This is also a feature that we would be interested in. Maybe add a property to header: initialSortOrder. It can be asc by default, to keep current functionality but we could set it to desc for certain column.