Correctly order rules by id/creation date
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
db9a31de58
commit
0250367bb5
1 changed files with 1 additions and 0 deletions
|
@ -27,6 +27,7 @@ def changeset(%Rule{} = rule, params \\ %{}) do
|
|||
def query do
|
||||
Rule
|
||||
|> order_by(asc: :priority)
|
||||
|> order_by(asc: :id)
|
||||
end
|
||||
|
||||
def get(ids) when is_list(ids) do
|
||||
|
|
Loading…
Reference in a new issue