Sort header classes.