Sort URI matching rules

Simply would like to be able to rearrange URI matching rules, so similar matches could be next to each other. Currently we have to re-add any rules, in the order we want them to appear.