The implementation sorts the array with the following order
objects of the same type are compared with the comparer function retrieved from getComparer.
Attempting to compare other primitive types, or object types that are yet to be registered (with registerComparer)
will cause InvalidOperationError.
Provides default implementation for sorting JS arrays.