Activities
latest
false
SortDataTable - Other latest
logo
Workflow Activities
Last updated Dec 5, 2023

SortDataTable

Sorts an entire DataTable by ascending or descending order, based on the values of a specified column.

Definition

Namespace: UiPath.Activities.System.API

Assembly: UiPath.System.Activities.Api (in UiPath.System.Activities.Api.dll)

Overloads

   
SortDataTable(DataTable, String) Sorts an entire DataTable by ascending or descending order, based on the values of a specified column.
SortDataTable(DataTable, String, SortOrder) Sorts an entire DataTable by ascending or descending order, based on the values of a specified column, while specifying the order in which the table should be sorted.

SortDataTable(DataTable, String)

Sorts an entire DataTable by ascending or descending order, based on the values of a specified column.

DataTable SortDataTable(
	DataTable dataTable,
	string columnName
)DataTable SortDataTable(
	DataTable dataTable,
	string columnName
)
dataTable DataTable
The DataTable variable you want to sort.
columnName String
The variable containing the name of the column you want to sort by.

SortDataTable(DataTable, String, SortOrder)

Sorts an entire DataTable by ascending or descending order, based on the values of a specified column, while specifying the order in which the table should be sorted.

DataTable SortDataTable(
	DataTable dataTable,
	string columnName,
	SortOrder sortOrder
)DataTable SortDataTable(
	DataTable dataTable,
	string columnName,
	SortOrder sortOrder
)
dataTable DataTable
The DataTable variable you want to sort.
columnName String
The variable containing the name of the column you want to sort by.
sortOrder SortOrder
The order in which the table is to be sorted.

Return value

DataTable

The DataTable variable after it has been sorted.

logo
Get The Help You Need
logo
Learning RPA - Automation Courses
logo
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2023 UiPath. All rights reserved.