fixes #3776 the code was not adding matched rules with a match level
less than what was already in the array. Change the code to add them at
the front of the array.