You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this example, I have made sure that start & finish columns have identical values (dates in this case but problem is also reproducible with strings or numbers). If you click on start (or finish) column you will see that only rows with title (Task 0, Task 1 and Task 7) interchange positions.
The expected behavior is to not change the row order since all values in the column (start/finish) on which sort is applied are identical.
Love slickgrid,
Thanks.
The text was updated successfully, but these errors were encountered:
I'm guessing you're using Chrome, which, for some reason, doesn't implement stable sort. Technically, it's not part of the spec, but all other browsers do have a stable sort implementation. Either way, this is outside of the grid competency. In your "sort" event handler, you can sort using a custom sorter instead of the built-in Array.sort.
I have modified the multi column sort example to reproduce this problem.
If you place this file in the 'examples' folder under zip, you can run it.
Link to file: http://www.2shared.com/complete/T62fpuNd/example-multi-column-sort.html
In this example, I have made sure that start & finish columns have identical values (dates in this case but problem is also reproducible with strings or numbers). If you click on start (or finish) column you will see that only rows with title (Task 0, Task 1 and Task 7) interchange positions.
The expected behavior is to not change the row order since all values in the column (start/finish) on which sort is applied are identical.
Love slickgrid,
Thanks.
The text was updated successfully, but these errors were encountered: