luci-app-statistics: correctness fixes

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
This commit is contained in:
Paul Donald
2026-05-22 14:38:35 +03:00
parent 0b93761a38
commit a90676336d
@@ -266,7 +266,7 @@ return baseclass.extend({
else if (x && y && x[0] != y[0])
return +x[0] - +y[0];
else
return a > b;
return a < b ? -1 : a > b ? 1 : 0;
});
},