Enum.sort/2
defmodule Enum do
def sort(enumerable, fun)
end
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.
defmodule Enum do
def sort(enumerable, fun)
end
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.