I have an input string that was delimited by white space. In the expression builder I try using expression language to split it. Splitting works fine as array output [] but issues come out when input string is not a sequence number (red box). So, I need to sort the array value but I don't know how to use it.
The ideal condition is
1 2 3 4
1 3 4
1 4
2 4
4
but sometimes input string is not sequential number.
1 4 2
1 2 4 3
3 4 1 2
anyone can help me how to use sort the array value ?
What am I confuse is
Sort expects a reference to two consecutive elements in the expression function as #item1 and #item2.
What I expect the output looks like these below:
input | output
1 4 2 | 1 2 4
1 2 4 3 | 1 2 3 4
3 4 1 2 | 1 2 3 4
anyone can give an example for me ?

or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is