-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
When sorting a column that has multiple instances of the same value, toggling sort will not always return the same sort order.
Ex: http://jsbin.com/zuluquba/
In the above example, toggling sort on the amount column return's inconsistent row ordering. Notice the id order of the amount column when ascending/ descending is not always the same. As far as I can tell this only happens in Chrome (Im on a Mac).
This could possibly be an accessibility issue for users with cognitive disabilities. It is also very noticeable if you have a selection column (checkbox) and the item you have selected does not always appear in the same location on every sort.
Those might be minor issues, but the major issue is with pagination.
In this example, when sorting the amount column in descending order you will find the same 2 id's at the bottom of the first page, and again at the bottom of the second page. This means 2 items are not being shown, or can be perceived as data missing. Of course, showing all items will display the complete set. I am currently seeing this on my Mac with Chrome, Firefox, and Safari.