Indicates the depth-first traversal order of the receiving index path and another index path.
Original signature is '- (NSComparisonResult)compare:(NSIndexPath *)indexPath'
Available in Mac OS X v10.4 and later.

C# | Visual Basic | Visual C++ |
public virtual NSComparisonResult Compare( NSIndexPath indexPath )
Public Overridable Function Compare ( _ indexPath As NSIndexPath _ ) As NSComparisonResult
public: virtual NSComparisonResult Compare( NSIndexPath^ indexPath )

- indexPath (NSIndexPath)
- Index path to compare.

The depth-first traversal ordering of the receiving index path and indexPath.

- Available in Monobjc Bridge: 10.6 (For Mac OS X 10.6 and later), 10.5 (For Mac OS X 10.5 and later)