Commit 1f7c9716 authored by Dorian Merz's avatar Dorian Merz
Browse files

Changes sort order of rules in Case of missing priorities

parent 4cedd7d1
......@@ -81,7 +81,7 @@ class Evaluator
function ($firstIdx, $secondIdx) {
$firstPrio = intval($this->rules[$firstIdx][2]);
$secondPrio = intval($this->rules[$secondIdx][2]);
return $secondPrio - $firstPrio ?: $secondIdx - $firstIdx;
return $secondPrio - $firstPrio ?: $firstIdx - $secondIdx;
}
);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment