Upath - Sort Datatable

datatable
activities

#1

Hi,

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
#2

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

Best,
Alex


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

Good Job


#4

its very easy