Skip to content
Snippets Groups Projects
Unverified Commit 2e2ba39a authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Fix rules with same priority being sorted non-deterministically (#20623)

parent 6da9df77
No related branches found
No related tags found
No related merge requests found
......@@ -18,5 +18,5 @@ class Rule < ApplicationRecord
validates :text, presence: true, length: { maximum: 300 }
scope :ordered, -> { kept.order(priority: :asc) }
scope :ordered, -> { kept.order(priority: :asc, id: :asc) }
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment