diff --git a/lib/philomena_web/views/profile_view.ex b/lib/philomena_web/views/profile_view.ex index c45a1210..42a39620 100644 --- a/lib/philomena_web/views/profile_view.ex +++ b/lib/philomena_web/views/profile_view.ex @@ -2,7 +2,7 @@ defmodule PhilomenaWeb.ProfileView do use PhilomenaWeb, :view def award_order(awards) do - Enum.sort_by(awards, &{!&1.badge.priority, DateTime.to_unix(&1.awarded_on)}) + Enum.sort_by(awards, &{&1.badge.priority, DateTime.to_unix(&1.awarded_on)}, &>=/2) end def badge_image(badge, options \\ []) do