range checks when alter sorting
range checks when alter sorting