Fix table sort for mongoose

Mongoose sort syntax change.  parseSort function was already in place -- call it from sortQuery.