Subclass comparator from blockdiodeabstract.