diff --git a/lib/music_library/collection.ex b/lib/music_library/collection.ex index 76481853..1e5dcc0a 100644 --- a/lib/music_library/collection.ex +++ b/lib/music_library/collection.ex @@ -47,7 +47,7 @@ defmodule MusicLibrary.Collection do from r in Record, where: not is_nil(r.purchased_at), where: fragment("strftime('%m-%d', ?) = ?", r.release_date, ^month_day), - order_by: [desc: r.release_date], + order_by: [{:desc, r.release_date}, order_alphabetically()], select: ^Records.essential_fields() Repo.all(q)