Reordering Train Cars solutions

Reordering Train Cars was solved using Python by 272 contestants. Solution sizes: average 2673 bytes (shortest: 151; longest: 9463).

The list below is sorted by solution size. You can also sort by ranking.