Skip to content

Commit

Permalink
ENH: NAV-180 - Sort get stops like term according to name
Browse files Browse the repository at this point in the history
  • Loading branch information
munterfi committed Sep 13, 2024
1 parent d830c27 commit 13a13dc
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public boolean hasTravelModeInformation() {
public List<Stop> getStops(String like, SearchType searchType) {
return stopSearchIndex.search(like.toLowerCase(), TypeMapper.map(searchType))
.stream()
.sorted(Comparator.comparing(ch.naviqore.gtfs.schedule.model.Stop::getName))
.map(TypeMapper::map)
.toList();
}
Expand Down

0 comments on commit 13a13dc

Please sign in to comment.