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.