SqlHierarchyId.CompareTo Method (SqlHierarchyId)
Returns a value indicating the results of a comparison between two SqlHierarchyId nodes.
Assembly: Microsoft.SqlServer.Types (in Microsoft.SqlServer.Types.dll)
Return ValueType: System.Int32
A 32-bit signed integer that indicates the relative order of the objects being compared. The return value has these meanings:
Less than zero
this is less than obj.
this is equal to obj.
Greater than zero
this is greater than obj.