Sort servers by title

This commit is contained in:
Björn Dahlgren 2014-07-28 19:50:06 +02:00
parent 36bfcf7db3
commit ed465a2ff1

View File

@ -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');