The UsedRange is the area of the worksheet that has data in it.Sort will put the data in ascending or descending order (keys areused to specify which column(s) or row(s) to sort by).