diff --git a/src/server/templates/typescript.ts b/src/server/templates/typescript.ts index 352c4ddc..013239ae 100644 --- a/src/server/templates/typescript.ts +++ b/src/server/templates/typescript.ts @@ -684,7 +684,8 @@ export type Database = { schemaFunctionsGroupedByName[fnName].sort( (a, b) => a.fn.argument_types.localeCompare(b.fn.argument_types) || - a.fn.return_type.localeCompare(b.fn.return_type) + a.fn.return_type.localeCompare(b.fn.return_type) || + a.fn.id - b.fn.id ) }