Skip to content

Commit bc1e2d7

Browse files
committed
fix: Sort scene list alphabetically in 'convert' command
1 parent 40ed77b commit bc1e2d7

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -547,6 +547,10 @@ In an effort to better document changes, this CHANGELOG document is now created.
547547
(v5-fixed)=
548548
### Fixed
549549

550+
- Sort the scene list alphabetically in the `manim convert` command.
551+
This fix was contributed by
552+
[@msaadsbr](https://github.com/msaadsbr)
553+
[#571](https://github.com/jeertmans/manim-slides/pull/571)
550554
- Patched enums in `manim_slides/convert.py` to correctly call `str`'s
551555
`__str__` method, and not the `Enum` one.
552556
This bug was discovered by

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)