src/main/java/ch/uzh/ifi/seal/ase/cscc/index/ScoredIndexDocument.java
@Override
    public int compareTo(ScoredIndexDocument o) {
        if (this.getScore1() > o.getScore1()) {
            return -1;
        } else if (this.getScore1() < o.getScore1()) {
            return 1;
        } else {
            // in case of equality in score1, compare score2
            if (this.getScore2() > o.getScore2()) {
                return -1;
            } else if (this.getScore2() < o.getScore2()) {
                return 1;
            } else {
                // tie in both score1 and score2, this and other are equal
                return 0;
            }
        }
    }
/**
     * higher score than other means it's coming before other when sorting
     */
higher score than other means it's coming before other when sorting
higher score than other means it ' s coming before other when sorting
@Override
    public int compareTo(ScoredIndexDocument o) {
        if (this.getScore1() > o.getScore1()) {
            return -1;
        } else if (this.getScore1() < o.getScore1()) {
            return 1;
        } else {
            if (this.getScore2() > o.getScore2()) {
                return -1;
            } else if (this.getScore2() < o.getScore2()) {
                return 1;
            } else {
                return 0;
            }
        }
    }
@ Override public int compareTo ( ScoredIndexDocument o ) { if ( this . getScore1 ( ) > o . getScore1 ( ) ) { return - 1 ; } else if ( this . getScore1 ( ) < o . getScore1 ( ) ) { return 1 ; } else { if ( this . getScore2 ( ) > o . getScore2 ( ) ) { return - 1 ; } else if ( this . getScore2 ( ) < o . getScore2 ( ) ) { return 1 ; } else { return 0 ; } } }
higher score than other means it's coming before other when sorting
higher score than other means it ' s coming before other when sorting
// in case of equality in score1, compare score2 // tie in both score1 and score2, this and other are equal