def _align_interval(interval):
    """
    Flip inverted intervals so the lower number is first.
    """
    (bound_one, bound_two) = interval
    return (min(bound_one, bound_two), max(bound_one, bound_two))