Author: kremenek
Date: Wed Jul 30 13:03:31 2008
New Revision: 54222
URL: http://llvm.org/viewvc/llvm-project?rev=54222&view=rev
Log:
Use stable sort.
Modified:
cfe/trunk/utils/sorttable.js
Modified: cfe/trunk/utils/sorttable.js
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/sorttable.js?rev=54222&r1=54221&r2=54222&view=diff
==============================================================================
--- cfe/trunk/utils/sorttable.js (original)
+++ cfe/trunk/utils/sorttable.js Wed Jul 30 13:03:31 2008
@@ -148,9 +148,9 @@
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++) {
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits