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

Add per-column sort order. #97

Merged
merged 3 commits into from
Dec 11, 2015
Merged

Add per-column sort order. #97

merged 3 commits into from
Dec 11, 2015

Conversation

omp
Copy link
Contributor

@omp omp commented Dec 10, 2015

This allows you to change the default sort order of a particular column using the data-sort-order attribute (asc or desc).

@tristen
Copy link
Owner

tristen commented Dec 10, 2015

👍 Can you document this change in the README?

@omp
Copy link
Contributor Author

omp commented Dec 10, 2015

Sure, just added a description and example to the ascending/descending section of the README. Hopefully it's good enough. :)

@@ -140,6 +141,10 @@
sortDir = 'sort-down';
} else if (header.classList.contains('sort-down')) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps instead of relying on the class for sort ordering it should solely use the data attribute?

@xPaw
Copy link
Contributor

xPaw commented Dec 10, 2015

👍

tristen added a commit that referenced this pull request Dec 11, 2015
Add per-column sort order.
@tristen tristen merged commit d23256a into tristen:gh-pages Dec 11, 2015
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