Skip to content

Commit

Permalink
Remove NO_SORT from glob so entries are sorted (cms-sw#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
gartung authored Mar 4, 2021
1 parent de517aa commit 755afe4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/piechart.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function preformat($file) {
// does not support flag GLOB_BRACE
function rglob($pattern, $flags = 0) {
$files = glob($pattern, $flags);
foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR|GLOB_NOSORT) as $dir) {
foreach (glob(dirname($pattern).'/*', GLOB_ONLYDIR) as $dir) {
$files = array_merge($files, rglob($dir.'/'.basename($pattern), $flags));
}
return $files;
Expand Down

0 comments on commit 755afe4

Please sign in to comment.