reordering trains