Positive if a < b, negative if a > b, zero if equal
Remarks
When comparing incompatible types (e.g., numbers with strings), JavaScript's comparison
operators perform type coercion which may produce unexpected results. Incomparable values
are treated as equal. Use with homogeneous collections for predictable sorting.
Compares values in descending order.
Null and undefined values are treated as less than any other value. When both values are null or undefined, they are considered equal.