save sorting to session