fixed arrow sort issue