Skip to content
This repository was archived by the owner on Mar 30, 2024. It is now read-only.

Commit a272d52

Browse files
committed
Fix Graph Sort Bug
1 parent a3b5d9c commit a272d52

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
latest
2-
0.2.3
2+
0.2.4
33
0.2
44
0

php/load/graphs/BarDailyWork.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function createGraph(combiData, plainData, singleDayData, canvas){
2626
let plotdataValues = [];
2727
let plotdataLabels = [];
2828
plotdataLabels = Object.keys(plotdata).sort((a,b) => {
29-
return (b.split('').reverse().join('') < a.split('').reverse().join('')) -1;
29+
return (b.split('.').reverse().join('-') < a.split('.').reverse().join('-')) -1;
3030
});
3131
plotdataLabels.forEach(key => {
3232
plotdataValues.push( plotdata[key] );

0 commit comments

Comments
 (0)