Sort stories in tree view (#1970)

This commit is contained in:
Matthias Thieroff
2022-03-03 14:25:20 +01:00
committed by GitHub
parent 826ae70c0e
commit 4d7980124f

View File

@@ -90,4 +90,7 @@ export const parameters = {
{ name: "highcontrast", color: "#000" },
],
},
options: {
storySort: (a, b) => (a[1].kind === b[1].kind ? 0 : a[1].id.localeCompare(b[1].id, undefined, { numeric: true })),
},
};