Upadate sort