Added changes for AMP Sort as AMP device_vector changed