Order performers by name in All (#3111)

This commit is contained in:
WithoutPants 2022-11-10 14:18:46 +11:00 committed by GitHub
parent eb795ff9ab
commit c83ebf7c1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -387,7 +387,8 @@ func (qb *PerformerStore) Count(ctx context.Context) (int, error) {
} }
func (qb *PerformerStore) All(ctx context.Context) ([]*models.Performer, error) { func (qb *PerformerStore) All(ctx context.Context) ([]*models.Performer, error) {
return qb.getMany(ctx, qb.selectDataset()) table := qb.table()
return qb.getMany(ctx, qb.selectDataset().Order(table.Col("name").Asc()))
} }
func (qb *PerformerStore) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Performer, error) { func (qb *PerformerStore) QueryForAutoTag(ctx context.Context, words []string) ([]*models.Performer, error) {