CategoryRule.reorder

CategoryRule.reorder(beams)[source]

Returns the given beams in a sorted order.

The beams are sorted according to their category attribute, first the beams with catergory_a and second the one with category_b. This allows using the category to determine the role of the beams.

Parameters:
beamstuple(Beam, Beam)

A tuple containing two beams to sort.

Returns:
tuple(Beam, Beam)