
package edu.nyu.cs.cs2580.utils;

import java.util.Comparator;
import edu.nyu.cs.cs2580.ScoredDocument;

public class ScoredDocumentComparator implements Comparator<ScoredDocument> {
    @Override
    public int compare(ScoredDocument o1, ScoredDocument o2) {
        return (o1._score > o2._score) ? -1 : 1;
    }
}

@@ -261,16 +261,18 @@
 %0A       
+//
  return 
@@ -309,12 +309,137 @@
  1;%0A    
-%7D
+%09if (o1._score%3Co2._score)%7B%0A    %09%09return 1;%0A    %09%7D%0A    %09if (o1._score%3Eo2._score)%7B%0A    %09%09return -1;%0A    %09%7D%0A    %09return 0;%0A    %7D%0A
 %0A%7D%0A

fix the bugs in comparator