There is a sort method in com.wm.data.IDataUtil
IData sortIDataArrayByKey(IData dataArray, String key, int compareType, boolean descending)
If there is a specific key who’s value means the documents are the same, you can sort and then do a loop through adding the unique documents to a real List object and then convert that List to an IData (i.e. a documentList).
See WmSamples sample.complexMapping.largeDoc.messageBuilder:createList, addToList, listToArray for methods that implement a real List (vector) object.
HTH,
Fred
#Integration-Server-and-ESB#webMethods#Flow-and-Java-services