--- import FragmentListItem from "../components/fragment-list-item.astro"; import { getCollection } from "astro:content"; const allFragments = await getCollection("fragment"); ---
{ allFragments .slice() .sort( (a, b) => new Date(b.data.date_published).getTime() - new Date(a.data.date_published).getTime(), ) .map((f, ix) => ) }