mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
sort storybook stories alphabetically
This commit is contained in:
parent
dd89c2655b
commit
92856afa3c
@ -55,4 +55,12 @@ function loadStories() {
|
||||
req.keys().forEach(req)
|
||||
}
|
||||
|
||||
// sort stories alphabetically
|
||||
addParameters({
|
||||
options: {
|
||||
storySort: (a, b) =>
|
||||
a[1].kind === b[1].kind ? 0 : a[1].id.localeCompare(b[1].id, { numeric: true }),
|
||||
}
|
||||
})
|
||||
|
||||
configure(loadStories, module)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user