Refresh sort when removing lines