From 3704f93ff56446d728f98f4d1718d591e1f9829f Mon Sep 17 00:00:00 2001 From: Christopher Kolstad Date: Fri, 25 Feb 2022 08:32:12 +0100 Subject: [PATCH] fix: readd orderBy statement to project query (#1394) --- src/lib/db/project-store.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/db/project-store.ts b/src/lib/db/project-store.ts index ee351ee8a6..2c08a845d5 100644 --- a/src/lib/db/project-store.ts +++ b/src/lib/db/project-store.ts @@ -72,7 +72,8 @@ class ProjectStore implements IProjectStore { ), ) .leftJoin('features', 'features.project', 'projects.id') - .groupBy('projects.id'); + .groupBy('projects.id') + .orderBy('projects.name', 'asc'); if (query) { projects = projects.where(query); }