This code is correct in terms of paging logic, but it\'s throwing an error: ORDER BY is only supported when the partition key is restricted by an EQ or an IN.
ORDER BY is only supported when the partition key is restricted by an EQ or an IN.