Fix stable sort of rows with no sortable values (would cause "jumping" rows at the end of the table)

This commit is contained in:
Oliver Jowett 2015-01-19 23:28:04 +00:00
parent 881cb8167d
commit 5e80a11934

View file

@ -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;