Sort Document List Again !!

Hi Guys,

Yes, I have seen the other posts like this one…

[url]wmusers.com

My key to sort is not string element in documentList, but it is child of another document in list. How can I set this as key in
sortedItemList = IDataUtil.sortIDataArrayByKey(itemList, keyField, IDataUtil.COMPARE_TYPE_COLLATION, null, sortDescending);

Input Document :

docList
–d1
–d1Str1
–str1
–d2
–d1Str2

I can sort my docList by passing keyField as str1, but not d1Str1 or d1/d1Str1!!!

Has anyone had this requirement??? and any solution for this ???

Thanks,
Ajit

Hello,

Document list can be sorted on inner document field by passing the key as below.

Say document is

OuterDoc
-fld1
-InnerDoc
-keyfield
-fldn

To sort based on the keyfield in InnerDoc, input parameter key has to be passed with value InnerDoc.keyfield.

Here dot is used instead of / to represent inner fields of the document.

Regards,
Vishnu