@uniweb/runtime 1.5.6 → 1.5.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ssr.js +1 -1
- package/dist/ssr.js.map +1 -1
- package/package.json +3 -3
- package/src/load-page-data.js +9 -3
package/dist/ssr.js
CHANGED
|
@@ -1427,7 +1427,7 @@ async function loadPageData({ website, route, fetch: fetch2, dev = false, locale
|
|
|
1427
1427
|
askIcons?.(pageIcons(blocks))
|
|
1428
1428
|
]);
|
|
1429
1429
|
if (askIcons) await askIcons(dataIcons([...entries.values()].map((entry) => entry.data)));
|
|
1430
|
-
return [...entries.
|
|
1430
|
+
return [...entries].sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0).map(([, entry]) => entry);
|
|
1431
1431
|
}
|
|
1432
1432
|
function sectionRecords(page) {
|
|
1433
1433
|
const sections = [];
|