Fix issue #127 - TranslatedReference does not sort ids by value.