public List<IssueDto> sort() {
    String sort = query.sort();
    Boolean asc = query.asc();
    if (sort != null && asc != null) {
      return getIssueProcessor(sort).sort(issues, asc);
    }
    return issues;
  }
@Test
  public void should_not_sort_with_null_sort() {
    IssueDto issue1 = new IssueDto().setKee("A").setAssigneeUuid("perceval");
    IssueDto issue2 = new IssueDto().setKee("B").setAssigneeUuid("arthur");
    IssueDto issue3 = new IssueDto().setKee("C").setAssigneeUuid("vincent");
    IssueDto issue4 = new IssueDto().setKee("D").setAssigneeUuid(null);
    List<IssueDto> dtoList = newArrayList(issue1, issue2, issue3, issue4);

    IssueQuery query = IssueQuery.builder().sort(null).build();
    IssuesFinderSort issuesFinderSort = new IssuesFinderSort(dtoList, query);

    List<IssueDto> result = newArrayList(issuesFinderSort.sort());

    assertThat(result).hasSize(4);
    assertThat(result.get(0).getAssigneeUuid()).isEqualTo("perceval");
    assertThat(result.get(1).getAssigneeUuid()).isEqualTo("arthur");
    assertThat(result.get(2).getAssigneeUuid()).isEqualTo("vincent");
    assertThat(result.get(3).getAssigneeUuid()).isNull();
  }