package net.sf.jasperreports.engine.fill;

import java.util.Comparator;
import net.sf.jasperreports.engine.JRElement;

public class JRYComparator implements Comparator {
  public int compare(Object obj1, Object obj2) {
    JRElement elem1 = (JRElement)obj1;
    JRElement elem2 = (JRElement)obj2;
    return elem1.getY() - elem2.getY();
  }
}
