Sort datatable column length uipath

Hi
I have datatable and I want to sort datatable with Hotel column length
Exanple:
Arrival, Departure, Hotel
Spain, Tunisia, BELVIL HOTEL
Greece, Egypt , CLEOPATRA GOLDEN BEACH OTEL
Italy, Thailand, BARCELO COCONUT ISLAND

Convert:
Arrival, Departure, Hotel
Greece, Egypt , CLEOPATRA GOLDEN BEACH OTEL
Italy, Thailand, BARCELO COCONUT ISLAND
Spain, Tunisia , BELVIL HOTEL

Assign Activity
dtSorted | DataType: DataTable =

(From d in YourDataTableVar.AsEnumerable
Let lng = d("Hotel").toString.Trim.Length
Order by lng DESCENDING
Select r = d).CopyToDataTable
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.