aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-07-30 18:03:31 +0000
committerTed Kremenek <kremenek@apple.com>2008-07-30 18:03:31 +0000
commit5b08cbc9cbfb24bb9500380f45ecc9dd94d61f40 (patch)
tree6d825f37be0c8a5d77e177de51d2125bd89c6fea
parent3cea9ee6b77ac797ebb910bdf45d1d7f8f68e37b (diff)
Use stable sort.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54222 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--utils/sorttable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/sorttable.js b/utils/sorttable.js
index 25bccb2b6b..4352d3be0a 100644
--- a/utils/sorttable.js
+++ b/utils/sorttable.js
@@ -148,9 +148,9 @@ sorttable = {
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++) {