From aca297e7de09fb6779a3bcfec44343e9feee1db3 Mon Sep 17 00:00:00 2001 From: Nick Pegg Date: Wed, 7 May 2025 21:34:53 -0700 Subject: [PATCH] sort jawns --- src/generate/album_dir.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/generate/album_dir.rs b/src/generate/album_dir.rs index 644b0bf..90e24b8 100644 --- a/src/generate/album_dir.rs +++ b/src/generate/album_dir.rs @@ -96,7 +96,8 @@ impl AlbumDir { } } - // TODO: sort children and albums alphabetically + children.sort_by_key(|c| c.path.clone()); + images.sort_by_key(|i| i.path.clone()); // Find a cover image if we didn't have an explicit one. Either the first image, or the // first image from the first album that has a cover.