Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce new column property firstSortType #648

Merged
merged 2 commits into from
Jun 23, 2020

Conversation

s-slavchev
Copy link
Contributor

Currently the first sort on a column sorts always in ascending order. Sometimes the user expects the first sort to sort the data in descending order. For example in a table "Most visited pages", when sorting by visits (sessions, users ...) one would expect the default sort order to be descending.

With the introduced firstSortType column property this behavior can be achieved.

Notes:

  1. This change is non-breaking
  2. The docs are also updated

 - with firstSortType we introduce the possibility to controll the sort order on the first sort(e.g. first click on the <th>) for this column
@eFlowMedia
Copy link

Can this one be merged into master?

@xaksis xaksis merged commit 9152556 into xaksis:master Jun 23, 2020
p0psicles pushed a commit to p0psicles/vue-good-table that referenced this pull request Jun 24, 2020
* Refactor sort module for readability

* Add firstSortType property for columns
 - with firstSortType we introduce the possibility to controll the sort order on the first sort(e.g. first click on the <th>) for this column
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants