Save sort preference in url hash