Travel Mapping

User Discussions => Welcome & Notices => Topic started by: Jim on June 15, 2016, 10:25:29 am

Title: Recent Web updates now live on tm main site
Post by: Jim on June 15, 2016, 10:25:29 am
I've merged in my development version that so many of you have been testing on tmtest to the GitHub master and installed the latest on tm.teresco.org .  Please let me know if I seem to have broken anything.

I'm turning my attention now to data processing issues again (things that at least help out on my project that indirectly can be called work as they will contribute to my educational use of our data).  I'll do bug fixes but will not be doing any new web development for a while.  Others are more than welcome to contribute enhancements, fixes, and new functionality.
Title: Re: Recent Web updates now live on tm main site
Post by: froggie on June 17, 2016, 08:36:35 am
Something I've noticed in the new(ish) Traveler Stats...when I'm looking at my stats in a given region, it's listing routes in "alphabetical order" going digit by digit.  For example, it's not recognizing that "MN 149" is a higher route number than "MN 15".

I tried to attach a screenshot, but it didn't work.
Title: Re: Recent Web updates now live on tm main site
Post by: Ib3kii on June 17, 2016, 11:11:41 pm
I tried to attach a screenshot, but it didn't work.
Here is a screenshot that(I hope) captures froggie's issue.

Thanks,
Title: Re: Recent Web updates now live on tm main site
Post by: Ib3kii on June 17, 2016, 11:13:42 pm
The problem is: after MN1, MN100 comes before MN2.

Thanks,
Title: Re: Recent Web updates now live on tm main site
Post by: Bickendan on June 22, 2016, 08:57:45 am
That's often the case in numerical sorting, and the correct way to fix that would be adding leading 0s (eg, MN 001, 002, ... 100). I'm not sure that would really be worth our time to add them to our files, though I do agree it's the preferable way to display the list.
Title: Re: Recent Web updates now live on tm main site
Post by: yakra on June 22, 2016, 01:00:23 pm
Having the routes listed in the appropriate order in the CSVs has already done the heavy lifting for us.
Title: Re: Recent Web updates now live on tm main site
Post by: Jim on June 22, 2016, 01:49:23 pm
Having the routes listed in the appropriate order in the CSVs has already done the heavy lifting for us.

Exactly.  Next time I'm in the web code I'll see if I can make CSV order the default ordering in tables and drop-downs, where appropriate.
Title: Re: Recent Web updates now live on tm main site
Post by: michih on June 22, 2016, 02:51:15 pm
Having the routes listed in the appropriate order in the CSVs has already done the heavy lifting for us.

Exactly.  Next time I'm in the web code I'll see if I can make CSV order the default ordering in tables and drop-downs, where appropriate.

I think that's fine! If one sorts the table manually, it's not possible to get the "correct" order again. It's not a problem, for instance, it's similar on wikipedia.