Sort an array of Item progressively by sort.

Sorts items progresively by the elements of sortOrder, passing to the next element if values at the current element are equal.

Comparisons are made as expected for number, string, and bigint types.

null and undefined values are considered equivalent and less than any other value.

Other types are compared by truthiness, where truthy is greater than falsy.