Sort List by a Parameter

Sort List by a Parameter

Comments

  • I have a structure containing a string and decimal field. I want to arrange this list in ascending order of the decimal parameters. How can I do this?

  • [font=verdana, sans-serif]You can use the Sort Array step to achieve your use-case. This step allows you to pass a list of objects into it and select what field you want to sort the data on. [/font]
    [font=verdana, sans-serif]
    [/font]
    [font=verdana, sans-serif]I have attached an example project which demonstrates this. The Flow is set up to generate a list of 10 objects and then sorts the list based on the decimal value.[/font]
    [font=verdana, sans-serif]
    [/font]

Sign In or Register to comment.