ordered
ordered
returns an "ordered" version of a set i.e. a set whose results are sorted in a specific order.
ordered(set,key,direction(optional))
Parameters:
| Parameter |
Type |
Description |
| set |
cloudset |
The set to sort |
| key |
string |
the name of the parameter to sort by
oparam string direction Can be sued to specify the direction fothe sort. Valid values are "ascending" or "descending". If none is provided, then the default is "ascending"
|
Returned Value:
| Type |
Description |
| cloudset |
The resulting ordered set |
Examples
all_people = subset(everything(),"is_a_person",true)
people_by_name = ordered(all_people,"Last Name")
last_person = Last(people_by_name)