diff --git a/src/controllers/ViewWorkFlowController.ts b/src/controllers/ViewWorkFlowController.ts index 1ca64578..3a0308a0 100644 --- a/src/controllers/ViewWorkFlowController.ts +++ b/src/controllers/ViewWorkFlowController.ts @@ -62,6 +62,11 @@ export class ViewWorkFlowController extends Controller { select: ["id", "name", "sysName", "posTypeName", "posLevelName"], where: { sysName: sysName, posTypeName: posTypeName, posLevelName: posLevelName }, relations: ["metaStates", "metaStates.metaStateOperators"], + order: { + metaStates: { + order: "ASC", + }, + }, }); return new HttpSuccess(lists); }