By default compare the two domain by it's id
@override int compareTo(T other) { return this.id.compareTo(other.id); }