Page 1 of 1

TrainsGUI Stations Sorting Access

Posted: Mon May 04, 2020 8:32 am
by LuziferSenpai
Hey,

it would be nice to have access to the sort function of the Schedule GUI for Trains, because that function can sort backernames aswell and that is awesome!

Greetz,

Luzifer

Re: TrainsGUI Stations Sorting Access

Posted: Mon May 04, 2020 7:05 pm
by Rseding91

Re: TrainsGUI Stations Sorting Access

Posted: Tue May 05, 2020 3:14 am
by LuziferSenpai
Rseding91 wrote: Mon May 04, 2020 7:05 pm It's just this: https://sourcefrog.net/projects/natsort/ more specifically the logic is here: https://sourcefrog.net/projects/natsort/strnatcmp.c
Yea but it has a Licence, so I dont think I can just take it and write it into a Lua function or?

And even if I would be allowed, I dont even know how.

Re: TrainsGUI Stations Sorting Access

Posted: Tue May 05, 2020 3:15 am
by Rseding91
The license terms are right in the file. It allows modification provided you follow the terms it lists.

Re: TrainsGUI Stations Sorting Access

Posted: Tue May 05, 2020 3:40 am
by LuziferSenpai
Oh, yea now to how to make it work. But thanks!