Reordering train cars