diff --git a/apps/www/app/templates/client.tsx b/apps/www/app/templates/client.tsx index 085050ebb..1b9b438fe 100644 --- a/apps/www/app/templates/client.tsx +++ b/apps/www/app/templates/client.tsx @@ -215,7 +215,9 @@ export function TemplatesClient() { - {Object.entries(languages).map(([language, occurences]) => ( + {Object.entries(languages) + .sort((a, b) => a[0].localeCompare(b[0])) + .map(([language, occurences]) => ( - {Object.entries(frameworks).map(([framework, occurences]) => ( - { - return ( - - - { - return checked - ? field.onChange([...field.value, framework]) - : field.onChange( - field.value?.filter( - (value: string) => value !== framework, - ), - ); - }} - /> - - - {framework} - - {occurences} - - - - ); - }} - /> - ))} + {Object.entries(frameworks) + .sort((a, b) => a[0].localeCompare(b[0])) + .map(([framework, occurences]) => ( + { + return ( + + + { + return checked + ? field.onChange([...field.value, framework]) + : field.onChange( + field.value?.filter( + (value: string) => value !== framework, + ), + ); + }} + /> + + + {framework} + + {occurences} + + + + ); + }} + /> + ))}