Moved sort comparator to it's own class.
Fixed bug in sort comparator.
Updated author.