Make sort a two step process when "copy to range" is specified.

First step is to copy the range from A to B, then sort on B.  This will
be handled as two commands rather than one.

Change-Id: Ibb1ad7384a3a25337b2b15c67ece90b3d61a6632