Alternative change for specificity

This is an alternative to #59

The patch in #59 is better, but this illustrates the problem better. The order shouldn't have any effect on the specificity, it should only count when the specificity is the same..