```js filename=".storybook/preview.js" renderer="common" language="js" export default { parameters: { options: { storySort: (a, b) => a.id === b.id ? 0 : a.id.localeCompare(b.id, undefined, { numeric: true }), }, }, }; ``` ```ts filename=".storybook/preview.ts" renderer="common" language="ts" // Replace your-framework with the framework you are using (e.g., react, vue3) import { Preview } from '@storybook/your-framework'; const preview: Preview = { parameters: { options: { // The `a` and `b` arguments in this function have a type of `import('@storybook/types').IndexEntry`. Remember that the function is executed in a JavaScript environment, so use JSDoc for IntelliSense to introspect it. storySort: (a, b) => a.id === b.id ? 0 : a.id.localeCompare(b.id, undefined, { numeric: true }), }, }, }; export default preview; ```