// TODO -- why is this here?
public void sortRows(AlignmentTrack.SortOption option, double location) {
        if (alignmentRows == null) {
            return;
        }
        for (AlignmentInterval.Row row : alignmentRows) {
            if (option == AlignmentTrack.SortOption.NUCELOTIDE) {
                // TODO -- why is this here?
            }
            row.updateScore(option, location, this);
        }
        Collections.sort(alignmentRows, new Comparator<Row>() {
            public int compare(AlignmentInterval.Row arg0, AlignmentInterval.Row arg1) {
                if (arg0.getScore() > arg1.getScore()) {
                    return 1;
                } else if (arg0.getScore() > arg1.getScore()) {
                    return -1;
                }
                return 0;
            }
        });
    }
for (AlignmentInterval.Row row : alignmentRows) {
if (option == AlignmentTrack.SortOption.NUCELOTIDE) {
// TODO -- why is this here?
}
row.updateScore(option, location, this);
public void sortRows(AlignmentTrack.SortOption option, double location) {
if (alignmentRows == null) {
return;
}
for (AlignmentInterval.Row row : alignmentRows) {
if (option == AlignmentTrack.SortOption.NUCELOTIDE) {
// TODO -- why is this here?
}
row.updateScore(option, location, this);
}
Collections.sort(alignmentRows, new Comparator<Row>() {
public int compare(AlignmentInterval.Row arg0, AlignmentInterval.Row arg1) {
if (arg0.getScore() > arg1.getScore()) {
return 1;
} else if (arg0.getScore() > arg1.getScore()) {
return -1;
}
public void sortRows(AlignmentTrack.SortOption option, double location) {
if (alignmentRows == null) {
return;
}
for (AlignmentInterval.Row row : alignmentRows) {
if (option == AlignmentTrack.SortOption.NUCELOTIDE) {
// TODO -- why is this here?
}
row.updateScore(option, location, this);
}
Collections.sort(alignmentRows, new Comparator<Row>() {
public int compare(AlignmentInterval.Row arg0, AlignmentInterval.Row arg1) {
if (arg0.getScore() > arg1.getScore()) {
return 1;
} else if (arg0.getScore() > arg1.getScore()) {
return -1;
}
return 0;
}
});
}