We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bdb9c7 commit 9854d5aCopy full SHA for 9854d5a
src/server/templates/typescript.ts
@@ -681,8 +681,10 @@ export type Database = {
681
{} as Record<string, typeof schemaFunctions>
682
)
683
for (const fnName in schemaFunctionsGroupedByName) {
684
- schemaFunctionsGroupedByName[fnName].sort((a, b) =>
685
- b.fn.definition.localeCompare(a.fn.definition)
+ schemaFunctionsGroupedByName[fnName].sort(
+ (a, b) =>
686
+ a.fn.argument_types.localeCompare(b.fn.argument_types) ||
687
+ a.fn.return_type.localeCompare(b.fn.return_type)
688
689
}
690
0 commit comments