fix sort persistence