Retrieve Data using Javascript actions with sort Ascending and Descending order
0
Hi, I want to retrieve data in JS action. I find this from the mendix documentation Mendix 8 Client Documentation: Namespace: data But it only sort in one way. But i need few attributes to sort in ascending and few in descending. Is there is any way to do this?. Could someone please help me with this?. Thanks in advance.
asked
Thmanampudi Lokesh Parameswara Reddy
1 answers
1
The sort parameter is an array of arrays. Did you try adding another array, resulting in something like: [[“Name”,”asc”],[“AnotherAttribute”,”desc”]] ?