Did Appian remove sortintegerarray() ,sortdecimealarry() ,sorttextarray(). function
Discussion posts and replies are publicly visible
These functions existed? Never heard of them.
You can use this code instead.
a!localVariables( local!data: a!forEach( items: ri!array, expression: { value: fv!item } ), todatasubset( local!data, a!pagingInfo( startIndex: 1, batchSize: - 1, sort: a!sortInfo(field: "value", ascending: or(ri!ascending)) ) ).data.value )
Isolate this in an expression rule and use it anywhere in your app.
I think you have a misprint in here. You have a rule input for "ascending" as i'd expect, but instead of using that you have "or(ri!array)".
I would expect perhaps that part to say "ascending: a!defaultValue(ri!ascending, true())" - and just note that the default behavior of the expression rule will be to sort in an ascending manner unless specified otherwise.
Yeah, that's gotta be a typo.
Good catch, Mike Schmitt Fixed!!