Skip to content

Commit

Permalink
sort by most recent sent.id feels more intutive #33
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Apr 16, 2020
1 parent dd65336 commit 7948087
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/app/ctx.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ defmodule App.Ctx do
email: e
}
end)
|> Enum.sort_by(&Map.fetch(&1, :updated_at), :desc)
|> Enum.sort_by(&Map.fetch(&1, :id), :desc)
end


Expand Down

0 comments on commit 7948087

Please sign in to comment.