-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: SB7 alphabetical story sorting doesn't work #22470
Comments
Hi can I work on this bug can you guide me the procedure to reproduce? |
@jackw Thanks for providing a repro! I took a look at it and tracked down the issue. #18243 introduced a breaking change disguised as a feature (cc @kylegach who reviewed the PR). In your example Before, specifying #18243 makes it so that if you want to target it nested one level deep, you need to target it more precisely using something like Short term, I'd classify this as "not a bug" and will update the migration docs accordingly. I think the sorting API is pretty awful, but changing it again is pretty disruptive and not very high value (IMHO) so I don't see that happening at any point soon. |
Describe the bug
Whilst bumping our project to SB7 we've run into an issue where the
storySort
that was working fine in 6.5 now fails to sort stories alphabetically.To Reproduce
https://stackblitz.com/edit/sb7-enchkx-broken-sort?file=.storybook/preview.ts
This should repro the issue. Notice that whilst the roots are sorted alphabetically the stories themselves are not. Additionally the order property should put the "Introduction" story first but it doesn't.
System
Additional context
There's an open PR here which first highlighted the issue if it's of any further use.
The text was updated successfully, but these errors were encountered: