Browse Source

feat: sort topics by name

main
Inhji Y. 8 months ago
parent
commit
b518634746
  1. 4
      lib/mirage/topics.ex

4
lib/mirage/topics.ex

@ -15,7 +15,9 @@ defmodule Mirage.Topics do
"""
def list_topics do
Repo.all(Topic)
Topic
|> order_by(:text)
|> Repo.all()
|> Repo.preload(@topic_preloads)
end

Loading…
Cancel
Save