Sort on status and delete sequence if it is not in processing status