PDA

View Full Version : To Sort values in a list in ascending order


bluewave2
08-31-2006, 04:06
Hi. Does anyone know if there is a IS service to sort values in a list?

ie.
nameList:
- Amy
- Jack
- Brian


I would like to sort the list in ascending order to be like the following:
sortedNameList:
- Amy
- Brian
- Jack


Thanks!

connertp
08-31-2006, 08:37
You can do this using the Java API. The method is called sortIDataArrayByKey. See this (https://advantage.webmethods.com/advantage?targChanId=forums&tid=1610629399)
discussion on Advantage. HTH,

Tim