Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

94
Views
Is it possible to use storySort for story variants?

I've got a storybook instance set up with some custom sorting added in order to ensure that the docs section appears at the top and is ordered correctly. However, it is now alphabetising all of the stories and their variations. This is annoying and I can't seem to change it using storySort, is this not possible or am I doing something wrong?

Here's an example of what it currently looks like: Screenshot of sidebar

All of this is fine until you reach the Button story, as you can see, each variant has been added in alphabetical order instead of the order they are in on the page. Here is my storySort object, have I done something wrong here?

storySort: {
      method: 'configure',
      includeName: true,
      order: [
        'Docs',
        [
          'Introduction',
          'Coding Guidelines',
          ['General'],
          '*',
          'Architectural Decisions',
          ['Introduction']
        ],
        'Atoms',
        'Molecules',
        'Organisms',
        'Pages'
      ]
    }

I've also tried it without adding method and includeName but that doesn't seem to make a difference. I've also tried adding ['*', ['Default', 'Primary', 'Secondary', 'Tertiary', 'Alternate']], underneath each Atoms, Molecules and Organisms entries but that didn't seem to make a difference.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!