Upath - Sort Datatable




I’m trying to sort a datatable variable which come from a .csv file.

I would like to sort the column name: “Column2”,

¿How it could be posible just using the uipath posibilities? ( Not writing in an Excel… )

I´ve been trying with the table.defaultview or table.select properties but i’m not able to sort it.

How it could be done?

Cheers, David

How to sort the values in specific column in excelsheet
How to sort the column in excel which doesnt have any column name
Error:Input array is longer than the number of columns in the table
Data scrapping with empty column value

Hi David, here is how it works with the defaultview sortDataTable.xaml (9.3 KB)

You can do it with datatable select as well, like in datatable.select(expression, sortOrder). See more explanations on this approach here


Sort DataTable based on column value
Sort ascending or Descending with out using tables
Find Max value from datatable

Good Job


its very easy