diff --git a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java index 693b53df7a..dabb752695 100644 --- a/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java +++ b/test-track/backend/src/main/java/io/metersphere/service/IssuesService.java @@ -437,7 +437,7 @@ public class IssuesService { public List getIssues(String caseResourceId, String refType) { IssuesRequest issueRequest = new IssuesRequest(); issueRequest.setCaseResourceId(caseResourceId); - ServiceUtils.getDefaultOrder(issueRequest.getOrders()); + issueRequest.setOrders(ServiceUtils.getDefaultOrder(issueRequest.getOrders(),"relate_time")); issueRequest.setRefType(refType); List issues = extIssuesMapper.getIssuesByCaseId(issueRequest); Map userMap = getUserMap(issues);