fix(sort): do not require comparator to be a string
refactor(sort): existence of comparator is checked for in sort function
Merge pull request #16 from damrbaby/comparator-string

fix(sort): do not require comparator to be a string