I have an interface where I select numbers using a multi select dropdown .
When I select it is in the sorted order
In the next confirmation screen , I show these values in an array as a read only paragraph , it is not maintaining the sorred order ( shown below )
a!paragraphField( label: "Item #", labelPosition: "ABOVE", instructions: "", value: a!forEach( items: toString(local!selectedItems), expression: substitute(fv!item, ";", ",") ), saveInto: local!selectedItems, readonly: true ),
I am displaying the paragraph as shown above , Is there anyway to display the local!selected items as sorted ?
Discussion posts and replies are publicly visible
Try this: https://community.appian.com/discussions/f/rules/29644/function-or-logic-to-sort-an-array-of-numbers