Sort by class...sort of