In Elixir 1.10 you can simply pass an additional :desc atom as a second argument to Enum.sort
:desc
Enum.sort
Enum.sort(collection, :desc)