Skip to content

Commit 59b6def

Browse files
committed
Fix repos sort_by NaiveDateTime type
1 parent 1303aa5 commit 59b6def

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/gitgud_web/lib/gitgud_web/templates/repo/index.html.eex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<% end %>
2727
</article>
2828
<% else %>
29-
<%= for repo <- Enum.sort_by(@user.repos, &(&1.pushed_at), :desc) do %>
29+
<%= for repo <- Enum.sort_by(@user.repos, &(&1.pushed_at), {:desc, NaiveDateTime}) do %>
3030
<div class="columns">
3131
<div class="column is-full">
3232
<div class="repo card">

0 commit comments

Comments
 (0)