fix: order apps by name (#2614)

This commit is contained in:
Garrett Delfosse
2022-06-23 14:18:03 -05:00
committed by GitHub
parent a39a8563cc
commit 0bcdfd584f
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -1,14 +1,14 @@
-- name: GetWorkspaceAppsByAgentID :many
SELECT * FROM workspace_apps WHERE agent_id = $1;
SELECT * FROM workspace_apps WHERE agent_id = $1 ORDER BY name ASC;
-- name: GetWorkspaceAppsByAgentIDs :many
SELECT * FROM workspace_apps WHERE agent_id = ANY(@ids :: uuid [ ]);
SELECT * FROM workspace_apps WHERE agent_id = ANY(@ids :: uuid [ ]) ORDER BY name ASC;
-- name: GetWorkspaceAppByAgentIDAndName :one
SELECT * FROM workspace_apps WHERE agent_id = $1 AND name = $2;
-- name: GetWorkspaceAppsCreatedAfter :many
SELECT * FROM workspace_apps WHERE created_at > $1;
SELECT * FROM workspace_apps WHERE created_at > $1 ORDER BY name ASC;
-- name: InsertWorkspaceApp :one
INSERT INTO