Sort rules alphabetically within categories

This makes it easier to edit the rules, especially once the list grows
large.