udpate  sort bug