Sort list of string in ascending order

Hi may i ask if there is a way to sort list of string in ascending order?
I know we can do it via invoke method for array of string, but my list is dynamic and the previous step is adding string to list

2 Likes

Hi @inyourgravity,

you can sort List of string with yourStringList.Sort() into ascending order by using assign activity with the same string list name.

Check this link for more details on this.

based on the need we can go for Order by as well.

1 Like

You can use Linq
Assign newList = list.OrderBy(Function(x) x).ToList()

5 Likes

@inyourgravity
You can use Array.Sort function to sort array of strings in ascending order

3 Likes