fixed Issue2218
fixed corresponding test pages
Merge pull request #2286 from subhodip7/Issue2218

Don't show 'Sort By' if there are fewer than 2 unarchived courses #2218