public int compareTo(Contact other) {
        return this.element.equals(other.element) 
                ? this.cnumber.compareTo(other.cnumber)
                : this.element.compareTo(other.element);
    }