CategoryRule.reorder
- CategoryRule.reorder(elements)[source]
Returns the given elements in a sorted order.
The elements are sorted according to their category attribute, first the elements with catergory_a and second the one with category_b. This allows using the category to determine the role of the elements.
- Parameters:
- elementstuple(
TimberElement
,TimberElement
) A tuple containing two elements to sort.
- elementstuple(
- Returns:
- tuple(
TimberElement
,TimberElement
)
- tuple(