Skip to content

Commit

Permalink
Merge pull request MarcusBarnes#25 from MarcusBarnes/issue-24
Browse files Browse the repository at this point in the history
Adds natural sort as per suggestion by whikloj.
  • Loading branch information
MarcusBarnes authored Mar 1, 2018
2 parents ec2eb7f + 5af93e1 commit 3338749
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extras/scripts/create_structure_files.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ function directoryXML($directory_path, $state = NULL) {

$pathbase = pathinfo($directory_path, PATHINFO_BASENAME);
$stuffindirectory = scandir($directory_path);
sort($stuffindirectory, SORT_NATURAL);

foreach ($stuffindirectory as $subdirOrfile) {
$subdirOrfilepath = $directory_path . DIRECTORY_SEPARATOR . $subdirOrfile;
Expand Down

0 comments on commit 3338749

Please sign in to comment.