sorting IData Array

Trying to sort an IData array. Have used “IDataUtil.sortIDataArrayByKey” to sort.
Able to sort if “Key field” equal to DocumentList=>Key field

IData[] sortedItemList = null;
// pipeline
IDataCursor pipelineCursor = pipeline.getCursor();
// Get Transactions
IData[] Transactions = IDataUtil.getIDataArray( pipelineCursor, “svc:transactions” );
String keyField = IDataUtil.getString( pipelineCursor, “keyField” );
boolean sortDescending = false;
if ( Transactions != null)
sortedItemList = IDataUtil.sortIDataArrayByKey(Transactions, keyField, IDataUtil.COMPARE_TYPE_COLLATION, null, sortDescending);
// pipeline
pipelineCursor = pipeline.getCursor();
IDataUtil.put( pipelineCursor, “sorted”, sortedItemList==null ? “false” : “true”);

Please help me on this

I want to sort a document array and key field absolute path is like “document list-document- key field”