Skip to content

Commit

Permalink
Merge pull request #116 from naviqore/bugfix/NAV-180-fix-buggy-searchbox
Browse files Browse the repository at this point in the history
ENH: NAV-180 - Sort get stops like term according to name
  • Loading branch information
clukas1 authored Sep 14, 2024
2 parents d830c27 + 13a13dc commit e200499
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 e200499

Please sign in to comment.