Correctly order rules by id/creation date
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
d26aadb743
commit
5c383ada8a
|
@ -27,6 +27,7 @@ def changeset(%Rule{} = rule, params \\ %{}) do
|
||||||
def query do
|
def query do
|
||||||
Rule
|
Rule
|
||||||
|> order_by(asc: :priority)
|
|> order_by(asc: :priority)
|
||||||
|
|> order_by(asc: :id)
|
||||||
end
|
end
|
||||||
|
|
||||||
def get(ids) when is_list(ids) do
|
def get(ids) when is_list(ids) do
|
||||||
|
|
Loading…
Reference in New Issue