Add caching of CSS specificities for CSS rules.

 * Fix sort to use specificity