PHP glob tri par unsigned int
$list = glob("*.jpg");
natsort($list);
foreach(array_reverse($list) as $filename) { ...
LemonzDEV
$list = glob("*.jpg");
natsort($list);
foreach(array_reverse($list) as $filename) { ...