And here is an example of how you can compare the two lists once they are sorted:
Code:
Break ON
udfCompare(Split("a b d2 c e"),Split("b d1 e f g h"))

Function udfCompare($avList1,$avList2)
Dim $iIndex1,$iIndex2
$iIndex1=0
$iIndex2=0
While $iIndex1<=UBound($avList1) OR $iIndex2<=UBound($avList2)
Select
Case $iIndex1>UBound($avList1)
$udfCompare=$udfCompare+@CRLF+$avList2[$iIndex2]+" missing from list 1"
$iIndex2=$iIndex2+1
Case $iIndex2>UBound($avList2)
$udfCompare=$udfCompare+@CRLF+$avList1[$iIndex1]+" missing from list 2"
$iIndex1=$iIndex1+1
Case $avList1[$iIndex1] > $avList2[$iIndex2]
$udfCompare=$udfCompare+@CRLF+$avList2[$iIndex2]+" missing from list 1"
$iIndex2=$iIndex2+1
Case $avList2[$iIndex2] > $avList1[$iIndex1]
$udfCompare=$udfCompare+@CRLF+$avList1[$iIndex1]+" missing from list 2"
$iIndex1=$iIndex1+1
Case "Match"
$iIndex1=$iIndex1+1
$iIndex2=$iIndex2+1
EndSelect
Loop
$udfCompare=SubStr($udfCompare,3)
EndFunction