diff --git a/CHANGELOG.md b/CHANGELOG.md index 2dd5b647..842c5c09 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 (unreleased)= ## [Unreleased](https://github.com/jeertmans/manim-slides/compare/v5.5.2...HEAD) +(unreleased-changed)= +### Changed + +- Sort the scenes alphabetically when listing scenes + (e.g., when prompting for scenes with `manim-slides present`). + [@msaadsbr](https://github.com/msaadsbr) [#573](https://github.com/jeertmans/manim-slides/pull/573) + (unreleased-chore)= ### Chore diff --git a/manim_slides/present/__init__.py b/manim_slides/present/__init__.py index 0f178d69..f3a03466 100644 --- a/manim_slides/present/__init__.py +++ b/manim_slides/present/__init__.py @@ -39,7 +39,7 @@ def _list_scenes(folder: Path) -> list[str]: logger.debug(f"Found {len(scenes)} valid scene configuration files in `{folder}`.") - return scenes + return sorted(scenes) def prompt_for_scenes(folder: Path) -> list[str]: