title: Evaluate elements according to their order
body: <p>I would like to evaluate elements that hold a number value in my List according to their order (order by their value) and put them into List, where Key is the original element and Value is evaluated order. My problem is I don't know how to deal with indifferent values in elements - they should be an average order.</p>
  <p>For example:</p>
  <p><code>double[]{2,4,4,4,7,8,40}</code> and I would like to have <code>double[]{1,3,3,3,5,6,7}</code></p>
  <p>I have already sorted that list:</p>
  <pre><code>for (int i = 0; i &lt; CriterionsNumber; i++)
  {
      variants[i].Criterions.OrderByDescending(value =&gt; value.Value).ToList();
  }
  
  Thank you.
  </code></pre>