Looks like you need to specify the full table name in the sort parameters, i.e. 'table.column' instead of just 'column' when querying one table. Adding this here to remind me to look into it.