fixing orderby bug to close #104