From cd050b2032895bb5f050a8396b7b865b36982219 Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Thu, 23 May 2024 10:07:07 +0700 Subject: [PATCH] fix sort --- src/controllers/OrganizationController.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/controllers/OrganizationController.ts b/src/controllers/OrganizationController.ts index ae258eb4..8728ec28 100644 --- a/src/controllers/OrganizationController.ts +++ b/src/controllers/OrganizationController.ts @@ -3055,6 +3055,20 @@ export class OrganizationController extends Controller { "orgChild1s.orgChild2s.orgChild3s", "orgChild1s.orgChild2s.orgChild3s.orgChild4s", ], + order: { + orgChild1s:{ + orgChild1Name: "ASC", + orgChild2s:{ + orgChild2Name: "ASC", + orgChild3s:{ + orgChild3Name: "ASC", + orgChild4s:{ + orgChild4Name: "ASC", + } + } + } + }, + } }); return new HttpSuccess(data); }