apps
latest
false
- Getting Started
- Demo apps
- How To
- Build Your First App
- Build a Mobile-Friendly App
- General User Experience Guidelines
- Use Master Detail View
- Use Document Viewer
- Use Count With Choice Set Values
- Use Selected Values From a Table
- Embed Apps
- Embed Maps
- Hide Containers Using a Button
- Include MailTo Links
- Include Star Ratings
- Set External Context
- Work With Data Source and Value Bind
- Use the Send Interim Result Activity
- Public Apps
- Notifications
- Using VB Expressions
- Designing your App
- Events and Rules
- Rule: If-Then-Else
- Rule: Open a Page
- Rule: Open URL
- Rule: Close Pop-Over/Bottom Sheet
- Rule: Show Message
- Rule: Show/Hide Spinner
- Rule: Set Values
- Rule: Start Process
- Rule: Upload File to Storage Bucket
- Rule: Get File From Storage Bucket
- Rule: Reset Values
- Rule: Create/Update Entity Record
- Rule: Delete Entity Record
- Rule: Add to Queue
- Function: And, Or, Not
- Function: Concat
- Function: Contains
- Function: Count
- Function: EndsWith
- Function: If
- Function: IsBlank
- Function: Guid
- 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
- Function: New
- Function: Lookup
- Function: Filter
- Leveraging RPA in your App
- Leveraging Entities in Your App
- Leveraging Queues in Your App
- Leveraging Media in your app
- Leveraging Actions in your app
- Leveraging Connections in your apps
- Application Lifecycle Management (ALM)
- UiPath First-Party Apps
- Basic Troubleshooting Guide
Function: Sort
LEGACY
Apps User Guide
Last updated Aug 5, 2024
Function: Sort
Note: To better understand how the Sort function works, check out the Using Apps with Data Service pages in the How To section.
Use this function to sort the information from a source based on its fields.
Note: This function performs a case insensitive check.
Note: This function does not work with an array of a complex object of a process.
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.