How to sort and compare list

Hi guys,
I am having list of two strings i need to check whether it contains string or not (for that i used intersect but it is not working) and also i have sort it before…list.xaml (8.3 KB)

I haven’t used Intersect before but you can achieve the same result with a for each loop.

For each item in List1
if List2.contains(item)
Add to new list

Just watch out for differences in cases.

1 Like