| Index: appengine/swarming/ui/res/imp/botlist/bot-list.html
|
| diff --git a/appengine/swarming/ui/res/imp/botlist/bot-list.html b/appengine/swarming/ui/res/imp/botlist/bot-list.html
|
| index 8f6622146aff75b57b37a5acb91223b4b2d1faa6..831aa52548ca7b893b5432ae058986982133af7a 100644
|
| --- a/appengine/swarming/ui/res/imp/botlist/bot-list.html
|
| +++ b/appengine/swarming/ui/res/imp/botlist/bot-list.html
|
| @@ -502,7 +502,19 @@
|
| first_seen: function(dir, botA, botB) {
|
| var botACol = botA.first_seen_ts;
|
| var botBCol = botB.first_seen_ts;
|
| - return dir * swarming.naturalCompare(botACol, botBCol)
|
| + return dir * swarming.naturalCompare(botACol, botBCol);
|
| + },
|
| + gpu: function(dir, botA, botB) {
|
| + // We want all the "none" GPU bots to come last in the list.
|
| + var botACol = this._column("gpu", botA);
|
| + if (botACol === "none") {
|
| + botACol = "ZZZ";
|
| + }
|
| + var botBCol = this._column("gpu", botB);
|
| + if (botBCol === "none") {
|
| + botBCol = "ZZZ";
|
| + }
|
| + return dir * swarming.naturalCompare(botACol, botBCol);
|
| },
|
| last_seen: function(dir, botA, botB) {
|
| var botACol = botA.last_seen_ts;
|
|
|