SortStructuredList() could do this in one go, and save us a bit of time and code.
c ya,
nco2k
SortStructuredList() #PB_Sort_RemoveDuplicates
SortStructuredList() #PB_Sort_RemoveDuplicates
If OSVersion() = #PB_OS_Windows_ME : End : EndIf