Enum

sort/2

sort(enumerable, fun)

Sorts the enumerable. The given function fun should compare two arguments, and return true if the first argument precedes or is in the same place as the second one.