Test sorting with out of order selections.