Skip to content

Commit 20c18f9

Browse files
committed
Version: comparison takes label into consideration
1 parent 5d7209a commit 20c18f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/app/Version.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public int CompareTo(Version other)
4343
if (this.Minor != other.Minor) return this.Minor - other.Minor;
4444
if (this.Patch != other.Patch) return this.Patch - other.Patch;
4545
if (this.Stability != other.Stability) return this.Stability - other.Stability;
46-
return this.StabilityVersion - other.StabilityVersion;
46+
if (this.StabilityVersion != other.StabilityVersion) return this.StabilityVersion - other.StabilityVersion;
47+
return this.Label.CompareTo(other.Label);
4748
}
4849

4950
public bool Equals(Version other)

0 commit comments

Comments
 (0)