How do you paginate when the sort key can change?

A service displays a paginated list of employees. Employees with higher salaries come first, and ties are broken by id in ascending order. Employees whose salaries are unknown must appear last. In the iv_employees table, salaries can be NULL. Salary values can also change while a user is browsing the list. To request the next page, the client sends a cursor containing the values from the last row it received. How would you define a deterministic sort order and select rows after the cursor, whether its salary is known or unknown? What happens if an employee's salary changes between requests? If the product requires every page to reflect the same state of the list, how would you guarantee that?

ExplainDuplicates and top NSeniorBackendData EngineerAnalyst