update some sorting alg