Reordering Train Cars solutions

Reordering Train Cars was solved using Ruby by 13 contestants. Solution sizes: average 2340 bytes (shortest: 987; longest: 3783).

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