I have number greater than 10 digit and that stored as a text and I want sort them. I have tried with sortextarray() that is sorting based on ascii values so it is not giving me correct output. and I tried to convert into int but that is giving me infinity Please help me here to sort the array.
Thanks in advance.
Discussion posts and replies are publicly visible
a!localVariables( local!data: "12345698934", /* Number greater than 10 digit */ local!length: len(local!data), local!dataToArray: a!forEach( items: enumerate(local!length), expression: { tointeger(charat(local!data, fv!index)) } ), local!sortedData: joinarray(sort(local!dataToArray)), local!sortedData)