Sorted performer and performance queries.
This commit is contained in:
@@ -21,6 +21,19 @@ defmodule Runosaari.Registration do
|
||||
Repo.all(Performer)
|
||||
end
|
||||
|
||||
@doc """
|
||||
Returns the list of performers.
|
||||
|
||||
## Examples
|
||||
|
||||
iex> list_performers()
|
||||
[%Performer{}, ...]
|
||||
|
||||
"""
|
||||
def list_sorted_performers do
|
||||
Repo.all(Performer |> order_by(:seqnum))
|
||||
end
|
||||
|
||||
@doc """
|
||||
Gets a single performer.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user