public int compareTo(FacetLabel other) {final int len = length < other.length ? length : other.length;for (int i = 0, j = 0; i < len; i++, j++) {int cmp = components[i].compareTo(other.components[j]);if (cmp < 0) {return -1; }if (cmp > 0) {return 1; }}return length - other.length;}

public virtual int CompareTo(FacetLabel other){int len = Length < other.Length ? Length : other.Length;for (int i = 0, j = 0; i < len; i++, j++){int cmp = Components[i].CompareToOrdinal(other.Components[j]);if (cmp < 0){return -1; }if (cmp > 0){return 1; }}return Length - other.Length;}
