From 494044773bcd09b419a721cfa531ed01de418cf4 Mon Sep 17 00:00:00 2001 From: kittapath Date: Wed, 11 Sep 2024 09:49:40 +0700 Subject: [PATCH] =?UTF-8?q?sort=20=E0=B8=AA=E0=B8=B3=E0=B8=99=E0=B8=B1?= =?UTF-8?q?=E0=B8=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/PermissionOrgController.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/PermissionOrgController.ts b/src/controllers/PermissionOrgController.ts index 4c74a527..1150f6cd 100644 --- a/src/controllers/PermissionOrgController.ts +++ b/src/controllers/PermissionOrgController.ts @@ -60,6 +60,9 @@ export class PermissionOrgController extends Controller { const data = await this.orgRootRepository.find({ where: { orgRevisionId: orgRevisionActive.id }, + order: { + orgRootOrder: "ASC", + }, }); return new HttpSuccess(data); }