From 5a9d159793577a7dc02c74187688a4c2c4ffb9cc Mon Sep 17 00:00:00 2001 From: Ken D'Ambrosio Date: Mon, 11 May 2026 04:21:02 +0000 Subject: Reverse sub-album listing order on admin edit page Co-Authored-By: Claude Sonnet 4.6 --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app.rb') diff --git a/app.rb b/app.rb index dde6125..e23ae38 100644 --- a/app.rb +++ b/app.rb @@ -328,7 +328,7 @@ def edit_album(rel) @data = load_album(@dir) @title = @data['title'] || (rel.empty? ? 'Root' : File.basename(@dir)) @files = Dir.children(@dir).sort.select { |n| MEDIA_EXTS.include?(File.extname(n).downcase.delete_prefix('.')) } - @sub_dirs = Dir.children(@dir).sort.select { |n| !n.start_with?('.') && File.directory?(File.join(@dir, n)) } + @sub_dirs = Dir.children(@dir).sort.reverse.select { |n| !n.start_with?('.') && File.directory?(File.join(@dir, n)) } erb :'admin/album' end -- cgit v1.2.3