Deletion and sort