Sort list of components by class name.