summaryrefslogtreecommitdiffstats
path: root/clang/utils/sorttable.js
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
commit6a77d42a4d0ed9ad0ff92b9434cd88dc968c087d (patch)
tree86b7bcb64b8eddce0478ecb5971c8bbe9a9025cd /clang/utils/sorttable.js
parente8fce56cd1fe58fafb92bf1df7a34c3987fdbf6f (diff)
downloadbcm5719-llvm-6a77d42a4d0ed9ad0ff92b9434cd88dc968c087d.tar.gz
bcm5719-llvm-6a77d42a4d0ed9ad0ff92b9434cd88dc968c087d.zip
Use stable sort.
llvm-svn: 54222
Diffstat (limited to 'clang/utils/sorttable.js')
-rw-r--r--clang/utils/sorttable.js4
1 files changed, 2 insertions, 2 deletions
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<row_array.length; j++) {
OpenPOWER on IntegriCloud