Skip to content

Commit

Permalink
Merge pull request #26 from kiwilan/develop
Browse files Browse the repository at this point in the history
1.5.11
  • Loading branch information
ewilan-riviere committed Jul 7, 2023
2 parents d5a5ace + 2020dde commit 6675214
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kiwilan/php-archive",
"version": "1.5.1",
"version": "1.5.11",
"description": "PHP package to handle archives (.zip, .rar, .tar, .7z) or .pdf with hybrid solution (native/p7zip), designed to works with eBooks (.epub, .cbz, .cbr, .cb7, .cbt).",
"keywords": [
"php",
Expand Down
3 changes: 3 additions & 0 deletions src/Readers/BaseArchive.php
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ protected function findFiles(string $search, bool $skipHidden): array
});

$filtered = array_values($filtered);
$property = 'rootPath';
$sort = fn ($a, $b) => strnatcmp($a->{$property}(), $b->{$property}());
usort($files, $sort);

return $filtered;
}
Expand Down

0 comments on commit 6675214

Please sign in to comment.