Revert commit ea50bd9ab17853483d6509bdba3f75fd60808f83 as the sorting
now takes place in AttributeTranslatedReference in the core.