Stabilize order of records on this day

This commit is contained in:
Claudio Ortolina
2025-09-26 11:33:34 +03:00
parent 86232a844f
commit c3a0819248
+1 -1
View File
@@ -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)