chore: alphabetize template list (#3363)

This commit is contained in:
Ben Potter
2022-08-05 13:03:22 -05:00
committed by GitHub
parent 854bb5dbeb
commit f14efd1a2b
4 changed files with 16 additions and 10 deletions

View File

@ -1889,7 +1889,7 @@ func (q *sqlQuerier) GetTemplateByOrganizationAndName(ctx context.Context, arg G
const getTemplates = `-- name: GetTemplates :many
SELECT id, created_at, updated_at, organization_id, deleted, name, provisioner, active_version_id, description, max_ttl, min_autostart_interval, created_by FROM templates
ORDER BY (created_at, id) ASC
ORDER BY (name, id) ASC
`
func (q *sqlQuerier) GetTemplates(ctx context.Context) ([]Template, error) {
@ -1954,7 +1954,7 @@ WHERE
id = ANY($4)
ELSE true
END
ORDER BY (created_at, id) ASC
ORDER BY (name, id) ASC
`
type GetTemplatesWithFilterParams struct {