For $g = 0 To $EndOfList-1
If($ListViewEx1.Items($g).Subitems(3).text = "")
$G = $EndofList -1
EndIf
For $j = 0 To $EndOfList -1
If($ListViewEx1.Items($j).Subitems(3).text = "")
$j = $EndofList -1
EndIf
$sFirstLine = ($ListViewEx1.Items($g).Subitems(1).text + " " + $ListViewEx1.Items($g).Subitems(3).text)
$sSecondLine = ($ListViewEx1.Items($j).Subitems(1).text + " " + $ListViewEx1.Items($j).Subitems(3).text)
If($ListViewEx1.Items($g).Subitems(3).text) = ($ListViewEx1.Items($j).Subitems(3).text)
If ($sFirstLine < $sSecondLine)
$ListViewEx1.Items.Remove($g)
EndIf
EndIf
If ($ListViewEx1.Items($g).Subitems(3).text) = ($ListViewEx1.Items($j).Subitems(3).text)
If ($sFirstLine > $sSecondLine)
$ListViewEx1.Items.Remove($j)
EndIf
EndIf
Next ;J
Next ;G