def ordered_elements(self):
        return iter(self.elements.order_by("category__name"))
Tests:
dataset/ETHPy150Open mozilla/moztrap/moztrap/model/environments/models.py/Environment.ordered_elements--crossover with--dataset/ETHPy150Open typesupply/woffTools/Lib/woffTools/tools/validate.py/_testHeaderLength