correct date sort

This commit is contained in:
byte[] 2019-12-08 01:23:03 -05:00
parent f645869d28
commit 63503c5735

View file

@ -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