I'd do it in three steps. Read your list first. Then make an associative array with file modification times, then sort in ascending order.
$files = glob("config/pages/*.php");
$files = array_combine(array_map("filemtime", $files), $files);
ksort($files);
Thus the oldest files will be atop the list.