sort algo, sort and copy adaptors