[enh] sort services by names

This commit is contained in:
Laurent Peuch 2018-05-17 06:38:02 +02:00
parent 3b3509392e
commit 39e166c8fb

View file

@ -24,6 +24,17 @@
v.loaded = y18n.t(v.loaded);
data2.services.push(v);
});
data2.services.sort(function (a, b) {
if (a.name > b.name) {
return 1;
}
else if (a.name < b.name) {
return -1;
}
return 0;
});
c.view('service/service_list', data2);
});
});