apps
2021.10
false
- Before You Begin
- Getting Started
- How To
- Designing your App
- Events and Rules
- Function: And, Or, Not
- Function: Concat
- Function: Contains
- Function: Count
- Function: EndsWith
- Function: If
- Function: IsBlank
- Function: Length
- Function: List
- Function: StartsWith
- Function: Sum
- Function: Sort
- Function: Now
- Function: Today
- Function: Time
- Function: Year
- Function: Month
- Function: Day
- Function: Hour
- Function: Minute
- Leveraging RPA in your App
- Application Lifecycle Management (ALM)
- Basic Troubleshooting Guide
Function: Sort
OUT OF SUPPORT
Apps User Guide for Automation Suite
Last updated Nov 11, 2024
Function: Sort
Use this function to sort the information from a source based on its fields.
Note:
This function performs a case insensitive check.
Syntax |
Description |
Example |
---|---|---|
Sort(Source, [Field, SortOrder], ...) |
Sorts the rows of a given array or range by the values in one or more columns. |
|
Argument |
Type |
Description |
---|---|---|
|
Required |
The table, array, or Entity to search (for example, a control's data property or the result of a process). |
|
Required |
The field by which to sort. It is mandatory if the source list contains complex objects. For common types (number, string, date etc), the field should not be specified. Multiple fields can be specified. |
|
Required |
Choose between
Ascending/ASC or Descending/DESC .
By default, the value is
ASC .
|
Sort(Customer, Name)
: Sort customers from a table by name (ascending order by default since no other value is given).Sort(Customer, City, Age)
: Sort customers from a table by city and age (ascending order by default since no other value is given).Sort(Customer, City, ”DESC”, Age)
: Sort customers from a table by city in a descending order, and by age in an ascending order.Sort(Customer, City, ”ASC”, Age, “DESC”)
: Sort customers from a table by city in a ascending order, and by age in an descending order.