How to use orderby for IEnumarable in uipath

How to use OrderBy function in Ienumarable list ? I would like to order the list using start date. Start date is a parameter for the orchestratorJob class and my Ienumarable list having OrchestratorJobs class

Hi @suripaleru

See here for a basic example:

1 Like

can you share an example with C# sytax? I am looking to orderbyDescending for directory.getfiles to find 1st recent file in folder

@Dipak_Makhija
we would recommend to open a new topic and get individually help
give a try:
strFileName = Directory.GetFiles("Path").OrderBy(x => new FileInfo(x).CreationTime ).Last();