cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between Sort and Sort by key in node functions in mapping

Former Member
0 Kudos

Hi

Please tell me the difference Sort and Sort by key in node functions in mapping... Thanq..

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

chk this:

/people/stefan.grube/blog/2005/12/29/new-functions-in-the-graphical-mapping-tool-xi-30-sp13

chk function category:Node functions (u will find detail description)

http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/content.htm

Answers (2)

Answers (2)

Former Member
0 Kudos

Thank you very much it was very much helpful..

Former Member
0 Kudos

Hi,

Sort simply sorts an array in ascending or descending order, depending on your choice.

SortByKey arranges one array on the sorting order of another array.

Say you have 2 arrays :

Array 1 --> B,D,A,E

Array 2 -->1,2,3,4

Now if you use sortByKey on array2 depending on Array1, Array2 will have the order --> 3,1,2,4.... i.e, the correspponding elements for sorted array1 --> A,B,C,D..

one pre requisite is that both arrays need to have same number of elements

Regards