I have some data of numbers $mydata = "10,2000,300,400,500,550" I asign it into array via regexp, then I sort it with _arraysort and as the result I get that 550 is the biggest number here! What am I doing wrong?
Result of console write is
550
500
400
300
2000
10
#include <array.au3>
Global $arr[6]
$mydata = "10,2000,300,400,500,550"
$array1 = StringRegExp($mydata, '(\d+)', 3)
for $i = 0 to UBound ($array1)-1
$arr[$i] = $array1[$i]
next
_ArraySort($arr,1)
for $z = 0 to UBound ($arr)-1
ConsoleWrite ($arr[$z]&@CRLF)
next