Sort CSS rules