def ordered_elements(self):
        return iter(self.elements.order_by("category__name"))
All elements in category name order.
dataset/ETHPy150Open mozilla/moztrap/moztrap/model/environments/models.py/Environment.ordered_elements