fn compare_spans(a: Span, b: Span) -> Ordering
Compares two spans in (lo ascending, hi descending) order.