Problem statement : We have a datatable that contains the order details for all customers and it needs to be sorted by ‘OrderDate’ column
Here is the datatable
Drag the assign activity to the workflow, write the following query
-
row.item(0) is the first column in the datatable
-
CDate() function converts the value in the date format
Let’s run the video and see the magic
YouTube Video : Sort Datatable Using Linq in Uipath - YouTube
Medium: How to Sort Datatable Using LINQ in UiPath - Manoj Batra - Medium
Github Repo: UiPathSamples/07- SortDatatableUsingLinq at main · manojbatra071/UiPathSamples · GitHub
Happy Automation