moved queryparam conversion to utils file in routes.  moved sorting into mongoose query