I’d like to sort it into two columns in the uipath.
(From x In DataTableName.AsEnumerable() Order By convert.Tostring(x(“col1”)),convert.ToString(x(“col2”)) Select x).CopyToDataTable
But it should be sorted in descending order.
I want to sort in descending order, not ascending.
I need your help.
please try this one
(From x In datatable.AsEnumerable() Order By convert.ToInt32(x(“Column1”)), convert.ToInt32(x(“Column2”)) Select x).CopyToDataTable
How about tis expression
(From x In DtBuild.AsEnumerable() Order By Convert.ToString(x("Column1")) Descending Select x).CopyToDataTable
Check out the XAML file
DescendingOrder.xaml (8.0 KB)
An Alternate using Method Syntax :
This is in case you want to sort it first by First Column and then by the second column.
You can use either of the below activities.
If you still want to proceed with linq expression you can watch the below video.
It’s sorting in ascending order…
Didn’t work as i thought…TT
IT WORKS!! IT WORKS!!!
This is what i wanted!!
Thanks a lot!!
It only works on one column…
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.