WHAT
To make trains to follow First in First out for in the junction or at any waiting signal.HOW
The trains are not somehow following FIFO even if we wanted to, and of course there are some decent complicated ways to achieve that via circuits.I have an idea to make each train to have an internal clock, and the clock would start ticking when the train stops at a signal.
so, that the train with highest waiting time will be given the highest priority to leave the junction or leave the spot that is currently waiting.