Return sortKey from query result, to allow resuming query.

This is required to be able to retrieve more than 500 changes using the query interface.