Skip to content

Commit

Permalink
style: add semicolons and revert code
Browse files Browse the repository at this point in the history
  • Loading branch information
Fei committed Jun 24, 2020
1 parent 22951c2 commit 6222a89
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/core/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,11 @@ export class ChartModel {

// Sort keys
if (scaleType === ScaleTypes.TIME) {
stackKeys.sort((a, b) => new Date(a) - new Date(b));
stackKeys.sort((a: any, b: any) => {
const dateA: any = new Date(a);
const dateB: any = new Date(b);
return dateA - dateB;
});
} else if (
scaleType === ScaleTypes.LOG ||
scaleType === ScaleTypes.LINEAR
Expand Down

0 comments on commit 6222a89

Please sign in to comment.