In both the HTML and PDF versions I have links to auxiliary files you can download. These will work only when you view the HTML or PDF version from the server. If you download either the HTML or the PDF version, they won't work. Just make sure you use the on-line version when trying to download auxiliary files.
// This class contains methods to sort arrays of string, float and int.
// To use it put Soring.gs in the directory of your project, and then
// do include "Sorting.gs".
// If you want a sorted version of the array aa,
// do the following:
// int nitem = aa.size();
// string[] aaSorted = new string[nitem];
// int[] index = new int[nitem];
// int[] invindex = new int[nitem];
// Sorting.SortString(aa, index, invindex, nitem)
// for (i=0; i<nitem; i++)
// {
// aaSorted[i] = aa[invindex[i]];
// }
// Or, without declaring an extra array:
// int i, iSorted;
// for (i=0; i<nitem; i++)
// {
// iSorted = invindex[i];
// ... do things with aa[iSorted] ...
// }
// You can use these methods to sort anything, as follows. Say you have an array of Industries you
// want to sort by name. Put all their names in an array, sort this array and then use invindex
// to access the Industries array.
To download, right-click on the link and do Save Target As: // This command will let you load all vehicles of your train from an applicable // queue in any industry, anywhere. You don't need to be at the corresponding track, // or even in the vicinity. // It is meant for those who want to drop off their consist at a yard and then come // back later when the ground crew has done the loading. // If you want to provide for a loading time (the loading is almost instantaneous), // use a WaitFor command before the SpeedLoad command. // The industries are listed by product category, following an idead by Michael Forner.To download, right-click on the link and do Save Target As: