dotnet / dotnet/dotnet-api-docs

What is "the sort order"?

Open
#976 0 comments 0 reactions 0 assignees View on GitHub
area-System.Runtime dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

> indicates whether the current object is before, after, or in the same position as the specified object in the sort order.

What is "the sort order"?

I SUPPOSE (from the example) that the tuples are compared lexicographically?

If yes, might I suggest mentioning this explicitely in the docs?

IMHO it'd be better if the reader wouldn't have to infer such info from the examples or own testing but just read it...

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: fc0ad1e6-8f64-2941-8315-0b6357ec0516
* Version Independent ID: 89251c1d-b7f5-e02d-5132-df55fac76621
* Content: [Tuple<T1,T2>.IComparable.CompareTo(Object) Method (System)](https://docs.microsoft.com/en-us/dotnet/api/system.tuple-2.system-icomparable-compareto?view=netcore-2.1)
* Content Source: [xml/System/Tuple`2.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System/Tuple`2.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.