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

feat: add ability to initially sort a column descending #1366

Merged
merged 1 commit into from
Mar 3, 2024

Conversation

mayorbyrne
Copy link
Contributor

After playing around with gridJS I noticed there wasn't a way to have columns sort descending on first click. Normally with numbers, this is the way you want sorting to behave (highest numbers first, to lowest). With this addition you can set the direction of the column sort in config.

      columns: ['Name', 'Email', 'Phone Number', {
        name: 'Age',
        sort: {
          direction: -1,
        }}]

@uwemaurer
Copy link

Good feature, I need this too.

@afshinm how about merging this feature?

@afshinm afshinm added the new feature New feature or request label Mar 3, 2024
@afshinm afshinm merged commit dd8985e into grid-js:master Mar 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants