Use index instead of key to persist sort state, and enable sorting by computed fields.