Fixing SortBy
Adding SortBySorter test for custom type