Ord instance of intervals compares on only the second element.

Fixes bug #32