From 52612adbd1cf5dd92ef78b8647d756b4ca7b4191 Mon Sep 17 00:00:00 2001 From: Jeremy Zongker Date: Thu, 28 Mar 2024 15:28:25 -0500 Subject: [PATCH] Sorted positions --- src/repositories/PositionRepository.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/repositories/PositionRepository.ts b/src/repositories/PositionRepository.ts index afb57a5..e9d96e9 100644 --- a/src/repositories/PositionRepository.ts +++ b/src/repositories/PositionRepository.ts @@ -34,7 +34,7 @@ export class PositionRepository { } public loadByPlanId(churchId: string, planId: string) { - return DB.query("SELECT * FROM positions WHERE churchId=? AND planId=?;", [churchId, planId]); + return DB.query("SELECT * FROM positions WHERE churchId=? AND planId=? ORDER BY categoryName, name;", [churchId, planId]); } }