From 815ed1b04f7d9e7d6967cab830501ccd6f748dce Mon Sep 17 00:00:00 2001 From: AdisakKanthawilang Date: Fri, 26 Apr 2024 17:51:53 +0700 Subject: [PATCH] fix sort --- src/controllers/PositionController.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/controllers/PositionController.ts b/src/controllers/PositionController.ts index 557f488e..bfe19f29 100644 --- a/src/controllers/PositionController.ts +++ b/src/controllers/PositionController.ts @@ -1198,6 +1198,9 @@ export class PositionController extends Controller { posMasterId: posMaster.id, }, relations: ["posLevel", "posType", "posExecutive"], + order:{ + createdAt: "ASC" + }, }); let profile: any;