]> granicus.if.org Git - clang/commitdiff
Use stable sort.
authorTed Kremenek <kremenek@apple.com>
Wed, 30 Jul 2008 18:03:31 +0000 (18:03 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 30 Jul 2008 18:03:31 +0000 (18:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54222 91177308-0d34-0410-b5e6-96231b3b80d8

utils/sorttable.js

index 25bccb2b6b91d5f835387595aadac3732af0e16f..4352d3be0a5f7037220bd6b2934f819787394075 100644 (file)
@@ -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++) {