From 5e80a11934097c9ff2475cb51118efcd245b43b1 Mon Sep 17 00:00:00 2001 From: Oliver Jowett Date: Mon, 19 Jan 2015 23:28:04 +0000 Subject: [PATCH] Fix stable sort of rows with no sortable values (would cause "jumping" rows at the end of the table) --- public_html/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/script.js b/public_html/script.js index 89e6eb8..aef1769 100644 --- a/public_html/script.js +++ b/public_html/script.js @@ -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;