diff --git a/src/controllers/ProfileController.ts b/src/controllers/ProfileController.ts index 6e335cdb..2c3a64d7 100644 --- a/src/controllers/ProfileController.ts +++ b/src/controllers/ProfileController.ts @@ -512,6 +512,7 @@ export class ProfileController extends Controller { "templateDoc", ], where: { profileId: id }, + order: { order: "ASC" } }); const Salary = salarys.map((item) => ({ diff --git a/src/controllers/ProfileEmployeeController.ts b/src/controllers/ProfileEmployeeController.ts index cf1e841c..b1fe6f53 100644 --- a/src/controllers/ProfileEmployeeController.ts +++ b/src/controllers/ProfileEmployeeController.ts @@ -521,6 +521,7 @@ export class ProfileEmployeeController extends Controller { "templateDoc", ], where: { profileEmployeeId: id }, + order: { order: "ASC" } }); const Salary = salarys.map((item) => ({