Resorting the styles