You can just use the asOrderedSet operation (if your collection is in the variable X, then that would be X->asOrderedSet())
From the OCL Standard asOrderedSet() : OrderedSet(T) An OrderedSet that contains all the elements from self, with duplicates removed, in an order dependent on the particular concrete collection type.