From a78c81ca906118abef16ce6af504115ba1cc3767 Mon Sep 17 00:00:00 2001 From: mamoss <> Date: Thu, 27 Mar 2025 03:20:30 +0700 Subject: [PATCH] =?UTF-8?q?sort=20=E0=B8=9B=E0=B8=A5=E0=B8=B1=E0=B8=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/OrganizationController.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controllers/OrganizationController.ts b/src/controllers/OrganizationController.ts index b7be0f34..99fef001 100644 --- a/src/controllers/OrganizationController.ts +++ b/src/controllers/OrganizationController.ts @@ -7564,7 +7564,7 @@ export class OrganizationController extends Controller { where: { orgRevision: { orgRevisionIsDraft: false, orgRevisionIsCurrent: true }, }, - order: { orgRootOrder: "ASC" }, + order: { isDeputy: "DESC", orgRootOrder: "ASC" }, select: ["orgRootName"], }); const posType = await this.posTypeRepository.find({