int compareTo(Rev other) { final indexCmp = this.index.compareTo(other.index); if (indexCmp != 0) return indexCmp; return this.md5.compareTo(other.md5); }