Skip to content

Commit

Permalink
Version: comparison takes label into consideration
Browse files Browse the repository at this point in the history
  • Loading branch information
JanTvrdik committed Sep 29, 2014
1 parent 5d7209a commit 20c18f9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ public int CompareTo(Version other)
if (this.Minor != other.Minor) return this.Minor - other.Minor;
if (this.Patch != other.Patch) return this.Patch - other.Patch;
if (this.Stability != other.Stability) return this.Stability - other.Stability;
return this.StabilityVersion - other.StabilityVersion;
if (this.StabilityVersion != other.StabilityVersion) return this.StabilityVersion - other.StabilityVersion;
return this.Label.CompareTo(other.Label);
}

public bool Equals(Version other)
Expand Down

0 comments on commit 20c18f9

Please sign in to comment.