[autoit]
$sect_count = IniReadSection($file2, "ranking")
Local $array[$sect_count[0][0]+1]
For $i = 1 To $sect_count[0][0]
$string = $sect_count[$i][1]
$split = StringSplit($string, "|")
$array[$i] = Int($split[2])
Next
_ArraySort($array,1,1,0,0)
For $i = 1 To $sect_count[0][0]
For $k = 1 To $sect_count[0][0]
$string = $sect_count[$k][1]
$split = StringSplit($string, "|")
If $array[$i] = Int($split[2]) Then
ExitLoop
EndIf
Next
IniWrite($file1, "Ranking", $i, $string)
Next
Damit konnte ich es über den Umweg einer 2. Datei lösen. Danke für eure Tips ![]()