int compareTo(Object other) { if (other is num) { return value.compareTo(other); } else if (other is Breakpoint) { return value.compareTo(other.value); } else { return -1; } }