Sort server list on save to update correct order based on new title(s)

This commit is contained in:
Björn Dahlgren 2015-08-15 14:03:46 +02:00
parent fac82611dc
commit c6ba691896

View File

@ -87,6 +87,10 @@ Manager.prototype.save = (function () {
var data = [];
var self = this;
this.serversArr.sort(function (a, b) {
return a.title.toLowerCase().localeCompare(b.title.toLowerCase());
});
this.serversHash = {};
this.serversArr.forEach(function (server) {
data.push({