Skip to content

Commit

Permalink
sorted 追加
Browse files Browse the repository at this point in the history
  • Loading branch information
tttol committed Jan 8, 2023
1 parent a4b85af commit 17340e6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -26,7 +27,9 @@ public List<MrInfoForm> 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<GitLabMergeRequestApiResponseDto> executeGitLabApi() {
Expand Down

0 comments on commit 17340e6

Please sign in to comment.