Fix sort map