diff --git a/src/components/home.tsx b/src/components/home.tsx index 3296d60b00dc3..bc521b12236d2 100644 --- a/src/components/home.tsx +++ b/src/components/home.tsx @@ -54,6 +54,15 @@ export async function Home() { (a, b) => HIGHLIGHTED_PLATFORMS.indexOf(a.key) - HIGHLIGHTED_PLATFORMS.indexOf(b.key) ); + // this regex deals with names like .NET that would otherwise be sorted at the top + const leadingNonAlphaRegex = /^[^\w]/; + + platformList.sort((a, b) => + (a.title ?? a.name) + .replace(leadingNonAlphaRegex, '') + .localeCompare((b.title ?? b.name).replace(leadingNonAlphaRegex, '')) + ); + return (