Skip to content

Commit

Permalink
Merge pull request #3166 from Yidadaa/bugfix-1107
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa committed Nov 7, 2023
2 parents dbee5bc + 54a5332 commit 77f27b7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/store/config.ts
Expand Up @@ -133,7 +133,9 @@ export const useAppConfig = createPersistStore(
.customModels.split(",")
.filter((v) => !!v && v.length > 0)
.map((m) => ({ name: m, available: true }));
return get().models.concat(customModels);
const allModels = get().models.concat(customModels);
allModels.sort((a, b) => (a.name < b.name ? -1 : 1));
return allModels;
},
}),
{
Expand Down

0 comments on commit 77f27b7

Please sign in to comment.