Sorting on specificity needs to be stable for correctness of the cascade.