I do not recommend to use any specific library, unless it's standard .net.
Based on your requirements, i'd suggest to use "index":
int[] list = new int[] {6,50,99,35,1,2,7};
var qry = list
.OrderBy(i=>i)
.Select((i, index)=>new
{
number = i,
rank = index+1
});
Result:
number rank
1 1
2 2
6 3
7 4
35 5
50 6
99 7
Note, you can always write
extension method[
^].