luci-app-statistics: fix data source ordering

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2020-02-20 13:48:00 +01:00
parent b23a63f554
commit 4b1a43fc86

View file

@ -634,7 +634,7 @@ return L.Class.extend({
var x = a.weight || a.index || 0,
y = b.weight || b.index || 0;
return +x < +y;
return +x - +y;
});
/* define colors in order */