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

Fix issue #1738: [datatable-sort] Sort order inconsistent when comparing on equal value #1868

Open
wants to merge 1 commit into
base: dev-master
Choose a base branch
from
Open

Conversation

gerardkcohen
Copy link
Contributor

This pull request address issue #1738, where datatable sorting on equal values does not always return the same result. The issue is especially important in paginated tables, where inconsistent sorting could leave out rows when moving from page to page, or what could be seen as missing data. Check the issue for jsbin examples.

As a tiebreaker in the event that values are equal sorting is based on the insertion order, determined by parsing the model's clientId.

Included in this PR are unit tests, inline comments, and a small spelling correction in the docs.

@yahoocla
Copy link

CLA is valid!

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.

None yet

2 participants