How to sort a list for an array of strings

I read a list of filenames to a String using Directory.GetFiles(path).

How do I sort the list in ascending order?

1 Like

Use InvokeMethod activity:
Type: System.Array
Object: (leave empty)
MethodName: Sort

Arguments:
In / System.Array / YourArray

Some other examples.

Regards,
Andrzej

8 Likes

Hello,

Can you please tell me how do I use Invoke Method for sorting a list?

Thanks