Commit 02823f12 authored by Jérome Perrin's avatar Jérome Perrin

sort stations by name in utilization chart

parent adc27dc6
...@@ -321,7 +321,9 @@ ...@@ -321,7 +321,9 @@
], ],
link: [] link: []
}; };
$.each(result.elementList, function (idx, obj) {
$.each(result.elementList.sort(function(a,b) {return a.name > b.name ? -1 : 1}),
function (idx, obj) {
if (obj.results !== undefined && obj.results.working_ratio !== undefined) { if (obj.results !== undefined && obj.results.working_ratio !== undefined) {
/* when there is only one replication, the ratio is given as a float, /* when there is only one replication, the ratio is given as a float,
otherwise we have a mapping avg, min max */ otherwise we have a mapping avg, min max */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment