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 6c87cd4 commit 7924a23Copy full SHA for 7924a23
pdl-live-react/src/view/masonry/model.ts
@@ -86,7 +86,9 @@ export default function computeModel(block: import("../../pdl_ast").PdlBlock) {
86
return []
87
})
88
.filter(removeFluff)
89
- .sort((a, b) => (!/\./.test(a.id) ? 1 : a.id.localeCompare(b.id)))
+ .sort((a, b) =>
90
+ !/\./.test(a.id) ? 1 : !/\./.test(b.id) ? -1 : a.id.localeCompare(b.id),
91
+ )
92
// ^^^ re: the regexp test, we want to place the "final output"
93
// (i.e. blocks without a "." in their id) at the end
94
0 commit comments