Fix sort not updating