diff --git a/src/LfmPath.php b/src/LfmPath.php index 038cc9d2..82607653 100644 --- a/src/LfmPath.php +++ b/src/LfmPath.php @@ -210,6 +210,10 @@ public function sortByColumn($arr_items) return strcasecmp($a->{$key_to_sort}, $b->{$key_to_sort}); }); + if (config('lfm.is_reverse_view', false)) { + return array_reverse($arr_items); + } + return $arr_items; } diff --git a/src/config/lfm.php b/src/config/lfm.php index e8c4fd43..d8883bf9 100644 --- a/src/config/lfm.php +++ b/src/config/lfm.php @@ -116,6 +116,9 @@ // Item Columns 'item_columns' => ['name', 'url', 'time', 'icon', 'is_file', 'is_image', 'thumb_url'], + // Output files in reverse + 'is_reverse_view' => false, + /* |-------------------------------------------------------------------------- | Thumbnail