added support for 2-arity comparator to #sortBy (see #65)
added support for sorting sequences in descending order
moved function check out of compare and into createComparator