Hello @MasTidar ,
Thanks for the question and using MS Q&A platform.
Requirement:
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
In order to achieve the above requirement, you can use below expression in your expression builder. This expression does split your input into an array and then sort the order and then replace the unwanted characters as needed.
replace((replace((replace((toString(sort(split(input, ' '), compare(#item1, #item2)))), '","', ' ')),'["','')),'"]','') -> Please note that `input` is the source column name in this sample
Below is the output for the expression:
Hope this will help. Let us know if any further queries.
------------------------------
- Please don't forget to click on
or upvote
button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
- Want a reminder to come back and check responses? Here is how to subscribe to a notification
- If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators