How to use OrderBy or OrderByDecending in uipath

Can anyone give a brief explanation for OrderBy (Function(x) x).
How this function(x) be used? What this x meant by? How this x be used in the workflow?

Thanks in advance

1 Like

Hey @Santhi7698

You already have the answer above,

X is nothing but the object from the collection.

Thanks
#nK

@Nithinkrishna Thanks for your reply.

But exactly not got the point in that. Can you give me the step by step explanation for the same.

1 Like

For a start With LINQ have a Look Here

Hey @Santhi7698

Here is the sample code to apply order by on data table collection,

PFA - nmnithinkrishna_DataTableOrderByLinq.zip (2.6 KB)

It can be applied on any collection like list etc…

Output

nmnithinkrishna_UiPath

Hope this helps.

Thanks
#nK

Thanks for u r answer. I understand

1 Like

Cool @Santhi7698 Thanks :slightly_smiling_face::+1:

1 Like

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