Skip to content

Commit

Permalink
fix #147 date sorting wrong compare type
Browse files Browse the repository at this point in the history
  • Loading branch information
sgratzl committed Apr 15, 2019
1 parent 34f1077 commit 6590b81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/model/DateColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default class DateColumn extends ValueColumn<Date> implements IDateColumn
}

toCompareValueType() {
return ECompareValueType.INT32;
return ECompareValueType.DOUBLE_ASC;
}

getDateGrouper() {
Expand Down
2 changes: 1 addition & 1 deletion src/model/DatesColumn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export default class DatesColumn extends ArrayColumn<Date | null> implements IDa
}

toCompareValueType() {
return [chooseUIntByDataLength(this.dataLength), ECompareValueType.INT32];
return [chooseUIntByDataLength(this.dataLength), ECompareValueType.DOUBLE_ASC];
}

isFiltered() {
Expand Down

0 comments on commit 6590b81

Please sign in to comment.