def METHOD_NAME(self) -> int:
    if self.__order is None:
        try:
            self.__order = STEPS.index(self)
        except ValueError:
            raise errors.InvalidStepError(self.name)
    return self.__order