moving the sort function null check to surround the built ones, supplied sortfn do not apply
Merge pull request #4 from InteractiveIntelligence/inin-v2.0.7_sortfn_wip

moving null checks for sortfn