Sort a set of boarding cards and output the journey plan