vue-good-table icon indicating copy to clipboard operation
vue-good-table copied to clipboard

Feature: prevent reset sorting after third click on column header

Open Mounzer-InMind opened this issue 4 years ago • 1 comments

  • [x] Enhancement Request

Expected Behavior

After 3rd click, sort ascending

Actual Behavior

After 3rd click, sort is being reset

Mounzer-InMind avatar Jun 08 '21 14:06 Mounzer-InMind

I just noticed this "feature" a few days ago, and asked about the sort design in a new issue (#889). I don't think I've ever seen a datatable design that resets the sort on the third click. Once you start sorting, the expectation (IMO) is that it will toggle between ascending and descending. Instead, VGT includes a third sort type: "none", which gets invoked on the third click (maybe with some exceptions(?). Obviously the lead devs implemented the three-way sort system intentionally; it certainly is an interesting take on datatable sorting. Nevertheless, I think it would make sense to offer a setting to turn on standard, two-way sorting.

plweil avatar Oct 12 '21 00:10 plweil