How to sort the row based on "Type"

May I ask how I can re-arrange the row based on ‘Type’?

Now the output is:

But I want my output that is sort by “type”

Read Range into a datatable
Sort Data Table activity
Write Range back to spreadsheet

Can you give me an illustration. Thank you!


What i need to input here?

Hey @Happydayyy
you can use this solution. Please take a look:

dtSorted = dtExcelData.AsEnumerable().OrderBy(Function(row) row("Type")).CopyToDataTable()

BlankProcess105.zip (11.4 KB)

Hi,
If you want type to be sorted into your data table?
dt.AsEnumerable.Where(Function(row) row(“Test meth Type”).toString).CopyToDataTable()

@Happydayyy

You can directly use sort excel activity

Cheers

It says “Data Table” so that is where you put your datatable. Also, you have to fill in the rest of the properties in the Properties panel.

I marked the solution. Thank you so much for helping me cope with this issue.

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