Fix stable sort of rows with no sortable values (would cause "jumping" rows at the end of the table)
This commit is contained in:
parent
881cb8167d
commit
5e80a11934
|
@ -736,7 +736,7 @@ function sortFunction(x,y) {
|
|||
|
||||
// always sort missing values at the end, regardless of
|
||||
// ascending/descending sort
|
||||
if (xv == null && yv == null) return 0;
|
||||
if (xv == null && yv == null) return x._sort_pos - y._sort_pos;
|
||||
if (xv == null) return 1;
|
||||
if (yv == null) return -1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue