i try to Remove faces based on legend color order
but
There is a mistake in deleting the order of the faces. Does anyone have a suggestion for the correct execution of this algorithm?
legend color is:

face remove.gh (271.5 KB)
i try to Remove faces based on legend color order
but
There is a mistake in deleting the order of the faces. Does anyone have a suggestion for the correct execution of this algorithm?
thanks