Add configuration option to allow sorting by lab_id or redcap_id