References for classes are now sortered.