(a: [any, any], b: [any, any]): number Compares two map entries for sorting purposes.
If the key is a string, it uses localeCompare for comparison.
For other types, it uses >.
a
type
[any, any]b
type
[any, any]returns
number