public int compare(RegionGroupStatus other) {
    return Integer.compare(this.weight, other.weight);
  }
Compare the weight of two RegionGroupStatus.

<p>Running > Available > Discouraged > Disabled
iotdb-core/confignode/src/main/java/org/apache/iotdb/confignode/manager/partition/RegionGroupStatus.java