SortHelper should not throw IllegalArgumentException when passing it a invalid selection