mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Sort servers by title
This commit is contained in:
parent
36bfcf7db3
commit
ed465a2ff1
@ -169,6 +169,10 @@ Manager.prototype._addServer = (function (id, title, port, mods) {
|
||||
this.serversArr.push(server);
|
||||
this.serversHash[id] = server;
|
||||
|
||||
this.serversArr.sort(function(a, b) {
|
||||
return a.title.localeCompare(b.title);
|
||||
});
|
||||
|
||||
var self = this;
|
||||
var statusChanged = function () {
|
||||
self.emit('servers');
|
||||
|
Loading…
Reference in New Issue
Block a user