class DeltaComparator implements Comparator<Delta<?>>, Serializable {
  private static final long serialVersionUID = 1L;
  public static final Comparator<Delta<?>> INSTANCE = new DeltaComparator();

  private DeltaComparator() {}

  @Override
  public int compare(final Delta<?> a, final Delta<?> b) {<FILL_FUNCTION_BODY>}
}

    final int posA = a.getOriginal().getPosition();
    final int posB = b.getOriginal().getPosition();
    if (posA > posB) {
      return 1;
    } else if (posA < posB) {
      return -1;
    }
    return 0;
  
<no_super_class>