diff --git a/src/components/CompatibilityFlags.astro b/src/components/CompatibilityFlags.astro index 0cb70507dfdb532..b53477f57cbd113 100644 --- a/src/components/CompatibilityFlags.astro +++ b/src/components/CompatibilityFlags.astro @@ -16,6 +16,11 @@ let flags = await getCollection("compatibility-flags"); if (experimental) { flags = flags.filter((x) => x.data.experimental); } + +flags.sort( + (a, b) => + new Date(b.data.sort_date).getTime() - new Date(a.data.sort_date).getTime(), +); --- {