Skip to content

Commit 3034ce0

Browse files
msaadsbrjeertmans
andauthored
feat(lib): sort scenes alphabetically when listing them (#573)
* fix: Sort scene list alphabetically in 'convert' command * chore(changelog): move entry to appropriate place --------- Co-authored-by: Jérome Eertmans <[email protected]>
1 parent 40ed77b commit 3034ce0

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
(unreleased)=
1111
## [Unreleased](https://github.com/jeertmans/manim-slides/compare/v5.5.2...HEAD)
1212

13+
(unreleased-changed)=
14+
### Changed
15+
16+
- Sort the scenes alphabetically when listing scenes
17+
(e.g., when prompting for scenes with `manim-slides present`).
18+
[@msaadsbr](https://github.com/msaadsbr) [#573](https://github.com/jeertmans/manim-slides/pull/573)
19+
1320
(unreleased-chore)=
1421
### Chore
1522

manim_slides/present/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def _list_scenes(folder: Path) -> list[str]:
3939

4040
logger.debug(f"Found {len(scenes)} valid scene configuration files in `{folder}`.")
4141

42-
return scenes
42+
return sorted(scenes)
4343

4444

4545
def prompt_for_scenes(folder: Path) -> list[str]:

0 commit comments

Comments
 (0)