From 7892df9b9faba2794edcdca78de003ef5a8e7985 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Wed, 27 Nov 2019 21:59:38 -0500 Subject: [PATCH] sort forum list --- lib/philomena_web/plugs/forum_list_plug.ex | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/philomena_web/plugs/forum_list_plug.ex b/lib/philomena_web/plugs/forum_list_plug.ex index b5e5c2ef..6f7726b5 100644 --- a/lib/philomena_web/plugs/forum_list_plug.ex +++ b/lib/philomena_web/plugs/forum_list_plug.ex @@ -18,6 +18,7 @@ defmodule PhilomenaWeb.ForumListPlug do # fixme: add caching! defp lookup_visible_forums(user) do Forum + |> order_by(asc: :name) |> Repo.all() |> Enum.filter(&Can.can?(user, :show, &1)) end