Skip to content

Commit

Permalink
QOLOE-54 sort stories alphabetically without affecting sub-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
stvp-qld committed May 16, 2024
1 parent 33538f0 commit baf1179
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ const preview = {
],
},
options: {
storySort: (a, b) => a.id === b.id ? 0 : a.id.localeCompare(b.id, undefined, { numeric: true }),
storySort: {
method: 'alphabetical',
}
},
},

Expand Down

0 comments on commit baf1179

Please sign in to comment.