Fix sort in tables to support new mongoose syntax.

Mongoose now wants { 'myKey', dir } syntax for sort parameter.  The function to do this (parseSort) was already present but not called in Table#sortQuery.