Action group: Collections
The action sorts the collection in the specified order. You can sort only homogeneous collections in which all elements are of the same type.
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Collection | Collection for processing | Robin.Collection | Yes | |
Sort order | Sort order | Robin.String | Yes |
There is a variable "Collection 1" with a list of countries.
It is necessary to sort the records in descending order (alphabetically), get the value at index "0" and output the found city in the dialog box.
Use the actions "Sort", "Show message", "Get value by index".
The program robot completed successfully.
The collection is sorted in descending order, and a dialog box with the country "Japan" is displayed.