this homework sorts the any type on 3 different kind (unique sort, un-unique sort, unique un-sort