The method getRelationships() returns an object without taking into account the original ordering given in the array.