diff --git a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanExecuteService.java b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanExecuteService.java index dca719280f..c6eeab4b2d 100644 --- a/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanExecuteService.java +++ b/backend/services/test-plan/src/main/java/io/metersphere/plan/service/TestPlanExecuteService.java @@ -341,6 +341,7 @@ public class TestPlanExecuteService { TestPlanCollection parentCollection = testPlanCollectionMapper.selectByPrimaryKey(executionQueue.getSourceID()); TestPlanCollectionExample example = new TestPlanCollectionExample(); example.createCriteria().andParentIdEqualTo(executionQueue.getSourceID()); + example.setOrderByClause("pos asc"); List childrenList = testPlanCollectionMapper.selectByExample(example); int pos = 0;