We use dictionaries for this.
Create a dictionary byKey. Dictionaries can handle all kind of types!
Example
testDictionary Dictionary { Ordering = byKey };entities TestRecord[];testDictionary = new Dictionary { }; for(idx int from 1 to entities.getSize() by 1) dictionaryKey string = entities.<keyfield>; testDictionary[dictionaryKey] = entities[idx]; end Jerrycan