test for sortupdate