def _sort_lows_and_highs(func):
@functools.wraps(func)<EOL>def wrapper(*args, **kwargs):<EOL><INDENT>for low, high, mult in func(*args, **kwargs):<EOL><INDENT>if low < high:<EOL><INDENT>yield low, high, mult<EOL><DEDENT>else:<EOL><INDENT>yield high, low, mult<EOL><DEDENT><DEDENT><DEDENT>return wrapper<EOL>
Decorator for extract_cycles