orderby splitter

might want to use createReference and createFunction from TestingHelpers