Use stable sort.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54222 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/utils/sorttable.js b/utils/sorttable.js
index 25bccb2..4352d3b 100644
--- a/utils/sorttable.js
+++ b/utils/sorttable.js
@@ -148,9 +148,9 @@
row_array[row_array.length] = [sorttable.getInnerText(rows[j].cells[col]), rows[j]];
}
/* If you want a stable sort, uncomment the following line */
- //sorttable.shaker_sort(row_array, this.sorttable_sortfunction);
+ sorttable.shaker_sort(row_array, this.sorttable_sortfunction);
/* and comment out this one */
- row_array.sort(this.sorttable_sortfunction);
+ //row_array.sort(this.sorttable_sortfunction);
tb = this.sorttable_tbody;
for (var j=0; j<row_array.length; j++) {