support sort order and exclusive start keys for query