15
Views
2
Comments
Easy to sort a list

Hi,

I am working on an environment which is v10.0.320 and I have a structure which has two attributes as below and a variable with list of that structure

  • Amount, a decimal field
  • Length, a integer field

Now I want to sort this variable based on amount field in descending order and length in ascending order (basically highest amount with least amount in length). Do we have any component that can do this?

Regards.

mvp_badge
MVP
Rank: #131

Hello Prasad,

You can use ListSort action from (System).

You need to use it 2 times (pass the List and the order you want to implement): 


If this option does not work correctly, you can also use the extension SortRecordList

You can have more info about this extension on this post: https://www.outsystems.com/forums/discussion/21343/multiple-attributes-sort-on-listsort/


BR,

Luis