Sort landing page paragraphs.
This commit is contained in:
@@ -21,6 +21,19 @@ defmodule Runosaari.Pages do
|
||||
Repo.all(Index)
|
||||
end
|
||||
|
||||
@doc """
|
||||
Returns the list of paragraphs sorted by seqnum.
|
||||
|
||||
## Examples
|
||||
|
||||
iex> list_sorted_index_paragraphs()
|
||||
[%Index{}, ...]
|
||||
|
||||
"""
|
||||
def list_sorted_index_paragraphs do
|
||||
Repo.all(Index |> order_by(:seqnum))
|
||||
end
|
||||
|
||||
@doc """
|
||||
Gets a single index.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user