If you have columns A and B and select only column A for sorting, only the
data in column A gets sorted. Column B will remain unchanged. You need to
select both columns before sorting.
If this is not the problem you are having, please give us more information.