#include <Array.au3>
Dim $aDate[21] = [20]
For $i = 1 To $aDate[0]
;format dd.mm.yy
$aDate[$i] = StringFormat('%02d.%02d.%02d', Random(1, 28, 1), Random(1, 12, 1), Random(1, 12, 1))
Next
_ArrayDisplay($aDate)
Dim $aTemp[$aDate[0] + 1][2] = [[$aDate[0]]]
For $i = 1 To $aDate[0]
$aTemp[$i][0] = $aDate[$i]
$aTemp[$i][1] = Number(StringRegExpReplace($aTemp[$i][0], '^(\d{2})\.(\d{2})\.(\d{2})$', '$3$2$1'))
Next
;_ArrayDisplay($aTemp)
_ArraySort($aTemp, 0, 1, 0, 1)
;_ArrayDisplay($aTemp)
For $i = 1 To $aDate[0]
$aDate[$i] = $aTemp[$i][0]
Next
_ArrayDisplay($aDate)