The MTA site I found lists bus routes at each stop using commas with alpha first.
like: "OR, 40, 59, 63".
In other words, way the physical signs are ordered.
In #OSM, routes have been joined with semi-colons, and alpha last (ASCII sort).
To compare each stop record in OSM against the bus company, I reached for the camel book.
#TMTOWTDI
$ cat bus1.t
OR, 40, 59, 63
40, 59, 63
40
$ cat bus1.t | perl bus_route.pl
OR, 40, 59, 63
40;59;63;OR
40, 59, 63
40;59;63
40
40
Next, SQL materialized view?
🍵 