file:.storybook/preview.js
export const parameters = { options: { storySort: (a, b) => { const aId = getStoryId(a[1]); const bId = getStoryId(b[1]); return aId === bId ? 0 : aId.localeCompare(bId, undefined, { numeric: true }); } }, };
file:.storybook/preview.js
export const parameters = { options: { storySort: (a, b) => { const aId = getStoryId(a[1]); const bId = getStoryId(b[1]); return aId === bId ? 0 : aId.localeCompare(bId, undefined, { numeric: true }); } }, };
For further actions, you may consider blocking this person and/or reporting abuse
Top comments (2)
Mind sharing where to import
getStoryId
from?Hello Joris, sorry I only saw your message now. I have not been able to find the exact function but from what I can recall is I am using
a[1].kind
andb[1].kind
.