diff --git a/src/routes/(console)/project-[region]-[project]/sites/create-site/templates/+page.ts b/src/routes/(console)/project-[region]-[project]/sites/create-site/templates/+page.ts index 5f876a9d8f..15ca325f7a 100644 --- a/src/routes/(console)/project-[region]-[project]/sites/create-site/templates/+page.ts +++ b/src/routes/(console)/project-[region]-[project]/sites/create-site/templates/+page.ts @@ -36,11 +36,13 @@ export const load = async ({ url, params }) => { 'Lynx', 'Angular', 'Analog', - 'Vite', - 'Other' + 'Vite' ]; const frameworks = Array.from(frameworksSet).sort((a, b) => { + // 'Other' always sorts last, regardless of any other framework's position. + if (a === 'Other') return 1; + if (b === 'Other') return -1; const aIndex = frameworkOrder.indexOf(a); const bIndex = frameworkOrder.indexOf(b); if (aIndex === -1 && bIndex === -1) return a.localeCompare(b);