How to Sort a List of Maps
From ElixirBlocks
Basic Example
users = [ %{name: "Bob"}, %{name: "Zod"}, %{name: "Maureen"} ] Enum.sort_by(users, &(&1.name), :desc))
Reference
users = [ %{name: "Bob"}, %{name: "Zod"}, %{name: "Maureen"} ] Enum.sort_by(users, &(&1.name), :desc))
Reference