From 274cdc27d78db4efe7fda0cb3af44a66d76b96e1 Mon Sep 17 00:00:00 2001 From: mamoss <> Date: Thu, 27 Mar 2025 05:24:33 +0700 Subject: [PATCH] sort desc --- src/controllers/OrganizationController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/OrganizationController.ts b/src/controllers/OrganizationController.ts index d74f5939..c44120df 100644 --- a/src/controllers/OrganizationController.ts +++ b/src/controllers/OrganizationController.ts @@ -7568,11 +7568,11 @@ export class OrganizationController extends Controller { select: ["orgRootName"], }); const posType = await this.posTypeRepository.find({ - order: { posTypeRank: "ASC" }, + order: { posTypeRank: "DESC" }, select: ["posTypeName"], }); const posLevel = await this.posLevelRepository.find({ - order: { posLevelRank: "ASC" }, + order: { posLevelRank: "DESC" }, select: ["posLevelName"], }); return new HttpSuccess({