Intervals should compare against tuples
fix: use __cmp__ for sorting, despite more user-friendly __lt__; tests pass