Fix: scheduler: properly sort rule-based blocks when overwriting values
Previously, sorting nvpair blocks for rule processing using sort_pairs() always
sorted with the highest score first.
This makes sense when evaluating nvpairs with overwrite set to false, so the
highest score takes precedence. However, when overwrite is true, this wrongly
makes the lowest score take precedence.
Now, the sort order depends on overwrite.
This has gone undetected for so long because nearly all callers set overwrite
to false. The main exception is when unpacking action meta-attributes.