umts / pvta-multiplatform

Transit realtime app for mobile devices
Other
6 stars 5 forks source link

Sorting departures by route puts lettered routes first #450

Closed dfaulken closed 6 years ago

dfaulken commented 6 years ago

For instance, I see B43 before 38. In my opinion, whether certain garages like to prepend a letter to their route numbers or not shouldn't change what order the numbers go in.

The simplest solution is likely to strip all non-number characters and then sort by the numbers (as numbers).

dfaulken commented 6 years ago

The best example I could come up with is Academy of Music:

screen shot 2018-02-08 at 7 17 51 pm