Skip to content

Commit 51e70cc

Browse files
committed
Add config to output files in reverse
1 parent 47b6e97 commit 51e70cc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

src/LfmPath.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,10 @@ public function sortByColumn($arr_items)
210210
return strcasecmp($a->{$key_to_sort}, $b->{$key_to_sort});
211211
});
212212

213+
if (config('lfm.is_reverse_view', false)) {
214+
return array_reverse($arr_items);
215+
}
216+
213217
return $arr_items;
214218
}
215219

src/config/lfm.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@
116116
// Item Columns
117117
'item_columns' => ['name', 'url', 'time', 'icon', 'is_file', 'is_image', 'thumb_url'],
118118

119+
// Output files in reverse
120+
'is_reverse_view' => false,
121+
119122
/*
120123
|--------------------------------------------------------------------------
121124
| Thumbnail

0 commit comments

Comments
 (0)