Fix table sort for mongoose

Mongoose sort syntax change.  parseSort function was already in place -- call it from sortQuery.
Merge pull request #225 from stu-salsbury/hotfix/hotfix-tableSort

Fix table sort for mongoose