Here, the train is in a moving frame and the clocks of the moving frame are out of synchronisation.
If L0 is the rest length separating the clocks and v is the speed of the moving frame, then the clock at the rear end leads the one at the front by L0v/c2.
Thus, the baby adjacent to the guard cell is elder to the baby adjacent to the engine.