I think that's mean you have merged cells in your selection. You have to delete the merge before sorting. I'm not sure if there is other solution without deleting the merge.