From 6eaa72ca5811e1d9d7f407991c97518df4f330c3 Mon Sep 17 00:00:00 2001 From: Inhji Date: Sun, 11 Jun 2023 10:10:19 +0200 Subject: [PATCH] fix list_tags ordering by title instead of name --- lib/chiya/tags.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/chiya/tags.ex b/lib/chiya/tags.ex index 1e69b28..045ed6a 100644 --- a/lib/chiya/tags.ex +++ b/lib/chiya/tags.ex @@ -34,7 +34,7 @@ defmodule Chiya.Tags do def list_tags do Tag |> with_preloads() - |> order_by(:title) + |> order_by(:name) |> Repo.all() end