/** @see java.lang.Comparable#compareTo(java.lang.Object) */ public int compareTo(Object o) { if (o == null || !(o instanceof Entry)) return -1; Entry e = (Entry) o; int i = compare(this.getCommonName(), e.getCommonName()); if (i != 0) return i; // CN ist identisch, dann vergleichen wir stattdessen O return compare(this.getOrganization(), e.getOrganization()); }