问题是我还在使用linqs吗?
foreach (var item in ints.Select((x, i) => new { OldIndex = i, Value = x, NewIndex = -1 })
.OrderBy(x => x.Value)
.Select((x, i) => new { OldIndex = x.OldIndex, Value = x.Value, NewIndex = i })
.OrderBy(x => x.OldIndex))
Console.Write(item + "\n");