type 'a seq = 'a Seq.tWe use the Seq representation of sequences for these functions.
val sortInPlace: ('a * 'a -> order) -> 'a seq -> unitsortInPlace cmp s sorts s and writes the result in-place.
Not guaranteed to be a stable sort (see StableSort).
Work: O(|s|log|s|)
Span: polylog|s|
val sort: ('a * 'a -> order) -> 'a seq -> 'a seqA purely functional version. The input is not modified; instead, a fresh array is produced as output.