Main list orders by the main artist
This commit is contained in:
@@ -18,9 +18,12 @@ defmodule MusicLibrary.Records do
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
def list_records do
|
def list_records do
|
||||||
Record
|
q =
|
||||||
|> limit(10)
|
from r in Record,
|
||||||
|> Repo.all()
|
order_by: r.artists[0]["sort_name"],
|
||||||
|
limit: 50
|
||||||
|
|
||||||
|
Repo.all(q)
|
||||||
end
|
end
|
||||||
|
|
||||||
@doc """
|
@doc """
|
||||||
|
|||||||
Reference in New Issue
Block a user