changed ordering of rules to reflect a 'ranking' order if 2 matches are found in 1 input