NML:Sorting vehicles in the purchase list
From GRFSpecs
Jump to navigationJump to searchVehicles, Stations, Canals, Bridges, Towns, Houses, Industries (Tiles), Cargos, Airports+Tiles, Objects, Railtypes, Roadtypes, Tramtypes, Terrain
Sort block allows arbitrary sorting of vehicles.
sort(<feature>, [<ID>, <ID>, <ID>...]);
The engines will be sorted in the given order on the position where originally the first element was. Say the original engine sorting is this: A B C D E and you use this code sort(FEAT_TRAINS, [D, B, A]);
the final sorting will be this: C D B A E