mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Sort server list on save to update correct order based on new title(s)
This commit is contained in:
parent
fac82611dc
commit
c6ba691896
@ -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({
|
||||
|
Loading…
Reference in New Issue
Block a user