Order record sets by name
This commit is contained in:
@@ -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]
|
||||||
|
|||||||
Reference in New Issue
Block a user