Sort rules more.

This makes the rule output identical on each run. Avoids huge diffs when
updating the rule sets.