Add test to remove duplicates when case insensitive.
Test sorting with out of order selections.
Merge pull request #326 from erbridge/sort_test

Sort tests