Skip to content

Commit

Permalink
Update packages/core/src/model.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Donisius Wigie <[email protected]>
  • Loading branch information
theiliad and Donisius authored Jun 24, 2020
1 parent f9c2713 commit 22951c2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/core/src/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,11 +169,7 @@ export class ChartModel {

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

0 comments on commit 22951c2

Please sign in to comment.