mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
treat null UpdatedDates as old in sort
This commit is contained in:
parent
26518ddaa4
commit
b4e8b32ec6
1 changed files with 2 additions and 2 deletions
|
|
@ -18,8 +18,8 @@ export const UpdatedDate = (columnVisibility: IColumnVisibility[]) => {
|
|||
};
|
||||
|
||||
const sortMethod = (a: string, b: string) =>
|
||||
moment(a).isValid()
|
||||
? (moment(b).isValid()
|
||||
a && moment(a).isValid()
|
||||
? (b && moment(b).isValid()
|
||||
? (moment(a).isBefore(b)
|
||||
? -1
|
||||
: 1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue