public-transport / gtfs-utils

Read & analyze GTFS datasets using Node.js.
https://github.com/public-transport/gtfs-utils#gtfs-utils
ISC License
38 stars 3 forks source link

sort.sh script does not sort numerically #27

Closed derhuerst closed 3 years ago

derhuerst commented 4 years ago

https://github.com/BurntSushi/xsv/issues/142#issuecomment-647478949

derhuerst commented 3 years ago

miller seems to do the job:

brew install miller
mlr --csv -f trip_id -n stop_sequence gtfs/stop_times.csv | sponge gtfs/stop_times.csv
derhuerst commented 3 years ago

frequencies.csv has start_time, which is nasty, since its values may be in HH:MM:SS or H:MM:SS format.