Files
music_library/backlog/completed/ml-77 - Inconsistent-alphabetical-ordering-helpers.md
T
Claudio Ortolina 2a688e2309 Cleanup old tasks
2026-04-24 09:58:09 +01:00

1.0 KiB

id, title, status, assignee, created_date, labels, dependencies, references, priority
id title status assignee created_date labels dependencies references priority
ML-77 Inconsistent alphabetical ordering helpers Done
2026-04-20 08:57
https://github.com/cloud8421/music_library/issues/98
low

Description

GitHub: created 2026-03-05 · updated 2026-03-06 · closed 2026-03-06

Priority: Low

Description

Records defines an order_alphabetically() macro (used by Collection), but OnlineStoreTemplates and RecordSets use raw fragment("? COLLATE NOCASE ASC", ...) instead.

Locations

  • lib/music_library/records.ex:39 — defines macro
  • lib/music_library/collection.ex:52,62,73 — uses macro
  • lib/music_library/online_store_templates.ex:14,20 — raw fragment
  • lib/music_library/record_sets.ex:45 — raw fragment

Expected behavior

Parameterize the order_alphabetically macro to accept a field and share it across all contexts.

Source

From technical debt audit (2026-03-05).