update sort value for preferences