removed the sort since it did not work properl and added the calculateSpecificity in the addStyle to calc the specificity of the selectors