Commit a2add23c authored by Marc Gravell's avatar Marc Gravell

Optimize SortedSetEntry.Equals

parent 298024d9
...@@ -83,7 +83,7 @@ public override bool Equals(object obj) ...@@ -83,7 +83,7 @@ public override bool Equals(object obj)
/// </summary> /// </summary>
public bool Equals(SortedSetEntry value) public bool Equals(SortedSetEntry value)
{ {
return this.element == value.element && this.score == value.score; return this.score == value.score && this.element == value.element;
} }
/// <summary> /// <summary>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment