Skip to content

Commit 92453a6

Browse files
committed
Update GraphApplication.php
1 parent 17f7be9 commit 92453a6

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/GraphApplication.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,11 @@ final class GraphApplication
1010
*/
1111
public function start(string $jsonGlob): int
1212
{
13-
$jsonFiles = glob($jsonGlob);
13+
$jsonFiles = glob($jsonGlob, GLOB_NOSORT);
14+
usort( $jsonFiles, function( string $a, string $b ) {
15+
return filemtime($a) - filemtime($b);
16+
});
17+
1418
if (!$jsonFiles) {
1519
throw new \RuntimeException('No files found for ' . $jsonGlob);
1620
}

0 commit comments

Comments
 (0)