src/main/java/org/ncgr/gwas/SegRecord.java
public int compareTo(Object o) {
	SegRecord that = (SegRecord) o;
	if (!this.contig.equals(that.contig)) {
	    return this.contig.compareTo(that.contig);
	} else {
	    return Integer.compare(this.start, that.start);
	}
    }
/**
     * Compare based on contig then start.
     */
Compare based on contig then start.
Compare based on contig then start .
public int compareTo(Object o) {
	SegRecord that = (SegRecord) o;
	if (!this.contig.equals(that.contig)) {
	    return this.contig.compareTo(that.contig);
	} else {
	    return Integer.compare(this.start, that.start);
	}
    }
public int compareTo ( Object o ) { SegRecord that = ( SegRecord ) o ; if ( ! this . contig . equals ( that . contig ) ) { return this . contig . compareTo ( that . contig ) ; } else { return Integer . compare ( this . start , that . start ) ; } }
Compare based on contig then start.
Compare based on contig then start .