[cfe-commits] r54222 - /cfe/trunk/utils/sorttable.js

Ted Kremenek kremenek at apple.com
Wed Jul 30 11:03:31 PDT 2008


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++) {





More information about the cfe-commits mailing list