Extra sorting on domain classes for menu generation