luci-app-statistics: correctness fixes
authorPaul Donald <redacted>
Fri, 22 May 2026 11:38:35 +0000 (14:38 +0300)
committerPaul Donald <redacted>
Wed, 27 May 2026 12:49:45 +0000 (15:49 +0300)
Signed-off-by: Paul Donald <redacted>
applications/luci-app-statistics/htdocs/luci-static/resources/statistics/rrdtool.js

index f19d44fbbbe6442c2af85980f635ff76f703e416..5a0e31efc81ed203d49317c0715357ad0ecf6d9e 100644 (file)
@@ -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;
                });
        },
 
git clone https://git.99rst.org/PROJECT