From: Ted Kremenek Date: Wed, 30 Jul 2008 18:03:31 +0000 (+0000) Subject: Use stable sort. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5b08cbc9cbfb24bb9500380f45ecc9dd94d61f40;p=clang 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 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