| Index: appengine/swarming/ui/res/js/common.js
|
| diff --git a/appengine/swarming/ui/res/js/common.js b/appengine/swarming/ui/res/js/common.js
|
| index 989e9c400d430862eecd5fd21cd25caca8c6130e..0f0f30800492318103a8c8306835bce636ac7e56 100644
|
| --- a/appengine/swarming/ui/res/js/common.js
|
| +++ b/appengine/swarming/ui/res/js/common.js
|
| @@ -17,18 +17,6 @@ this.swarming = this.swarming || function() {
|
| return most;
|
| };
|
|
|
| - // naturalCompare tries to use natural sorting (e.g. sort ints by value).
|
| - swarming.naturalCompare = function(a, b) {
|
| - // Try numeric, aka "natural" sort and use it if ns is not NaN.
|
| - // Javascript will try to corece these to numbers or return NaN.
|
| - var ns = a - b;
|
| - if (!isNaN(ns)) {
|
| - return ns;
|
| - }
|
| - return String(a).localeCompare(b);
|
| - };
|
| -
|
| -
|
| swarming.stableSort = function(arr, comp) {
|
| if (!arr || !comp) {
|
| console.log("missing arguments to stableSort", arr, comp);
|
|
|