diff --git a/src/IterableCodeExtractor.php b/src/IterableCodeExtractor.php index a0e9b148..74e7d979 100644 --- a/src/IterableCodeExtractor.php +++ b/src/IterableCodeExtractor.php @@ -85,6 +85,7 @@ public static function fromDirectory( $dir, Translations $translations, array $o $files = static::getFilesFromDirectory( $dir, $include, $exclude, $options['extensions'] ); if ( ! empty( $files ) ) { + sort( $files ); static::fromFile( $files, $translations, $options ); }