diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-07-30 18:03:31 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-07-30 18:03:31 +0000 |
commit | 5b08cbc9cbfb24bb9500380f45ecc9dd94d61f40 (patch) | |
tree | 6d825f37be0c8a5d77e177de51d2125bd89c6fea | |
parent | 3cea9ee6b77ac797ebb910bdf45d1d7f8f68e37b (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.js | 4 |
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++) { |