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