--- // src/content/config.ts import { defineCollection, z } from 'astro:content'; const docs = defineCollection({ type: 'content', schema: z.object({ title: z.string(), order: z.number(), }), }); export const collections = { docs }; --- title: Getting Started order: 1 --- Content for the first doc page. --- title: Configuration order: 2 --- Content for the second doc page. --- title: Deployment order: 3 --- Content for the third doc page. --- import { getCollection } from 'astro:content'; const entries = (await getCollection('docs')).sort( (a, b) => a.data.order - b.data.order ); ---