What Is a function for showing array itoem in ascending or descending
Discussion posts and replies are publicly visible
There is no direct function. You can use todatasubset() paired with sortInfo() to get the desired result.
a!localVariables( local!array: a!forEach( items: ri!array, expression: { utls: fv!item } ), todatasubset( arrayToPage: local!array, pagingConfiguration: a!pagingInfo( startIndex: 1, batchSize: - 1, sort: a!sortInfo(field: "utls", ascending: ri!isAscending) ) ).data.utls )
This is the best way.