mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 21:47:59 +01:00
correct date sort
This commit is contained in:
parent
f645869d28
commit
63503c5735
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ defmodule PhilomenaWeb.ProfileView do
|
||||||
use PhilomenaWeb, :view
|
use PhilomenaWeb, :view
|
||||||
|
|
||||||
def award_order(awards) do
|
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
|
end
|
||||||
|
|
||||||
def badge_image(badge, options \\ []) do
|
def badge_image(badge, options \\ []) do
|
||||||
|
|
Loading…
Reference in a new issue