From 5bb33c04c37feb3ffc9326079fea57af60bcfbaa Mon Sep 17 00:00:00 2001 From: Claudio Ortolina Date: Thu, 5 Feb 2026 14:32:43 +0000 Subject: [PATCH] Order record sets by name --- lib/music_library/record_sets.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/music_library/record_sets.ex b/lib/music_library/record_sets.ex index 2ce987de..f0986637 100644 --- a/lib/music_library/record_sets.ex +++ b/lib/music_library/record_sets.ex @@ -9,7 +9,7 @@ defmodule MusicLibrary.RecordSets do limit = Keyword.get(opts, :limit, 20) from(rs in RecordSet, - order_by: [desc: rs.updated_at], + order_by: [asc: rs.name], offset: ^offset, limit: ^limit, preload: [items: :record]