add option to select more courses, sort array before arranging courses