Order campsite type’s index by name

This commit is contained in:
jordi fita mas 2023-08-14 11:46:57 +02:00
parent 208952b964
commit 114c6e6212
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ type typeEntry struct {
}
func collectTypeEntries(ctx context.Context, company *auth.Company, conn *database.Conn) ([]*typeEntry, error) {
rows, err := conn.Query(ctx, "select slug, name, active from campsite_type where company_id = $1", company.ID)
rows, err := conn.Query(ctx, "select slug, name, active from campsite_type where company_id = $1 order by name", company.ID)
if err != nil {
return nil, err
}