Uipath - Sort Datatable

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

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

12 Likes

Good Job

its very easy