Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2003)

Unified Diff: appengine/swarming/ui/res/imp/common/dynamic-table-behavior.html

Issue 2765313002: Add proper natural sort to swarming UI (Closed)
Patch Set: Update package.json Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: appengine/swarming/ui/res/imp/common/dynamic-table-behavior.html
diff --git a/appengine/swarming/ui/res/imp/common/dynamic-table-behavior.html b/appengine/swarming/ui/res/imp/common/dynamic-table-behavior.html
index 8c942bfa3a98e5ea11c14dee51efca42d7780acb..a17d7de3aaa61e57d38e8cb3da44772dcadb3f87 100644
--- a/appengine/swarming/ui/res/imp/common/dynamic-table-behavior.html
+++ b/appengine/swarming/ui/res/imp/common/dynamic-table-behavior.html
@@ -164,7 +164,7 @@
bCol = "ZZZ";
}
- return dir * swarming.naturalCompare(aCol, bCol);
+ return dir * naturalSort(aCol, bCol);
},
_filterAndSort: function() {

Powered by Google App Engine
This is Rietveld 408576698