Sort entities by groups/types of any kind