code: def formula_sections(self):
          
          if self.dtree is not None:
              return self.dtree.order
          else:
              return [s for s in self.manifest.sections() if s != "config"]
docs: Return all sections related to a formula, re-ordered according to the "depends" section.