From 6a77d42a4d0ed9ad0ff92b9434cd88dc968c087d Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 30 Jul 2008 18:03:31 +0000 Subject: Use stable sort. llvm-svn: 54222 --- clang/utils/sorttable.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'clang/utils/sorttable.js') diff --git a/clang/utils/sorttable.js b/clang/utils/sorttable.js index 25bccb2b6b9..4352d3be0a5 100644 --- a/clang/utils/sorttable.js +++ b/clang/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