diff --git a/src/main/java/io/github/tttol/mrls/service/MergeRequestService.java b/src/main/java/io/github/tttol/mrls/service/MergeRequestService.java index 4c504f8..e1f2b0b 100644 --- a/src/main/java/io/github/tttol/mrls/service/MergeRequestService.java +++ b/src/main/java/io/github/tttol/mrls/service/MergeRequestService.java @@ -8,6 +8,7 @@ import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Service; +import java.util.Comparator; import java.util.List; import java.util.Objects; import java.util.Optional; @@ -26,7 +27,9 @@ public List get() { e.getAuthor().getId() : e.getAssignee().getId() ) ) - .values().stream().map(this::generateForm).toList(); + .values().stream().map(this::generateForm) + .sorted(Comparator.comparing(e -> e.assignee().id())) + .toList(); } private List executeGitLabApi() {