compare(a: any, b: any, collator?: Collator): number
If the parameters are numbers or undefined, this function will return a simple comparison between them. If they are
any other type, .toString() will be called on them, and passed on to numberAwareStringCompare.
If the parameters are numbers or undefined, this function will return a simple comparison between them. If they are any other type,
.toString()
will be called on them, and passed on to numberAwareStringCompare.