add save-excursion to sort command