updating sorting