If this is used in Array.sort(), dates will be sorted from latest to earliest
Parameters:
Name | Type | Description |
---|---|---|
a |
string
|
ISO-timestamp |
b |
string
|
ISO-timestamp |
return -1 if a is before b
return 1 if a is after b
else return 0
number