Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
KnollFrank committed Dec 7, 2024
1 parent e585110 commit e35d6c1
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,13 @@

class SearchResultsByPreferencePathSorter implements de.KnollFrank.lib.settingssearch.results.SearchResultsSorter {

private static final Comparator<SearchablePreferencePOJO> PREFERENCE_BY_PREFERENCE_PATH_COMPARATOR = getPreferenceByPreferencePathComparator();

@Override
public List<SearchablePreferencePOJO> sort(final Collection<SearchablePreferencePOJO> searchResults) {
return searchResults
.stream()
.sorted(getPreferenceByPreferencePathComparator())
.sorted(PREFERENCE_BY_PREFERENCE_PATH_COMPARATOR)
.collect(Collectors.toList());
}

Expand Down

0 comments on commit e35d6c1

Please sign in to comment.