We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c319937 commit e53908eCopy full SHA for e53908e
packages/theme-doc/src/index.tsx
@@ -93,6 +93,9 @@ export function createTheme(
93
.sort((a, b) => {
94
// sort by (order, key)
95
if (a.order !== b.order) return a.order - b.order
96
+ // keep dataPiece with key 'main' at the front (before demos)
97
+ if (a.key === 'main') return -1
98
+ if (b.key === 'main') return 1
99
return a.key.localeCompare(b.key)
100
})
101
.map(({ result }) => result)
0 commit comments