Rainbow baseball

This is another funny variation on the sorting problem, adapting the main sorting algorithms on an unusual context.