How to sort array in UI Path

how can i sort array through UI Path and then delete duplicate row in Array

Hello @Charu_Rathi you can use LINQ:

(From item In MyArray Select item Order By item Ascending).ToArray

1 Like

We can use Sort method available in Arrays methods.Attached the solution for reference.
Sequence_Array Sort.xaml (7.4 KB) .

Hi @Charu_Rathi

you can use InvokeMethod activity:
Type: System.Array
Object: (leave empty)
MethodName: Sort

cheers :smiley:

Happy learning :smiley:

1 Like