diff --git a/lib/philomena_web/views/profile_view.ex b/lib/philomena_web/views/profile_view.ex index d4888032..180040da 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, &1.awarded_on}) + Enum.sort_by(awards, &{!&1.badge.priority, DateTime.utc_now(&1.awarded_on)}) end def badge_image(badge, options \\ []) do