F sorted(compare: Function, iterable: Iterable): Array
Outputs an array containing the elements of the input iterable sorted according to a given comparison function.