Delete excluded lines directly after call to sorting filter function.