Order record sets by name

This commit is contained in:
Claudio Ortolina
2026-02-05 14:32:43 +00:00
parent f6aee7b785
commit 5bb33c04c3
+1 -1
View File
@@ -9,7 +9,7 @@ defmodule MusicLibrary.RecordSets do
limit = Keyword.get(opts, :limit, 20) limit = Keyword.get(opts, :limit, 20)
from(rs in RecordSet, from(rs in RecordSet,
order_by: [desc: rs.updated_at], order_by: [asc: rs.name],
offset: ^offset, offset: ^offset,
limit: ^limit, limit: ^limit,
preload: [items: :record] preload: [items: :record]