This module is obsolete and exists only for backward compatibility. The sorting functions inArrayandListshould be used instead. The new functions are faster and use less memory.val list : order:('a -> 'a -> bool) -> 'a list -> 'a listSort a list in increasing order according to an ordering predicate. The predicate should returntrueif its first argument is less than or equal to its second argument.val array : order:('a -> 'a -> bool) -> 'a array -> unitSort an array in increasing order according to an ordering predicate. The predicate should returntrueif its first argument is less than or equal to its second argument. The array is sorted in place.val merge : order:('a -> 'a -> bool) -> 'a list -> 'a list -> 'a listMerge two lists according to the given predicate. Assuming the two argument lists are sorted according to the predicate,mergereturns a sorted list containing the elements from the two lists. The behavior is undefined if the two argument lists were not sorted.
![]()
![]()
![]()