title: How to get the rank list of multiple number in a sublist and populate it?
body: <p>I have a TeamSquad made of players and each have tests store in a table.
  Test results are stored in fields (int) such as RF1 and LF1. (right foot and Left Foot).
  The data for the RF1 and LF1 has been populated on a prior date. For each player.  But I may not have a result in RF1 or LF1 for a player yet.</p>
  <pre><code>List&lt; TeamSquadViewModel &gt; teamsquad = new List&lt; TeamSquadViewModel &gt;();  
  
  foreach (var item in teamsquadlist)
  {
      TeamSquadViewModel data = new TeamSquadViewModel();
      data.Player = item;
      data.IsSelected = false;
      data.UserId = item.UserId;
                  
      if (_testRepository.GetAllTestsForAPlayer(userlogged.User_Club_id, item.UserId).Any())
      {
          data.StatExists = true;
          data.LastTests = _testRepository.GetAllTestsForAPlayer(userlogged.User_Club_id, item.UserId).OrderByDescending(e =&gt; e.Test_Date_Record).FirstOrDefault();
                   
      }
      teamsquad.Add(data);
  }
  </code></pre>
  <pre><code>public class TeamSquadViewModel   {  
  
      public Player Player { get; set; }  
      public bool IsSelected { get; set; }  
      public string UserId { get; set; }  
      public bool StatExists { get; set; }  
      //STATS AREA  
      public Test LastTests { get; internal set; }  
  }
    
  public class Test : BaseModel  
  {  
      [Required]  
      public int Test_RF1  
      {  
          get  
          {  
              return GetValue&lt;int&gt;();  
          }  
          set  
          {  
              SetValue(value);  
          }  
      }  
  
      [Required]
      public int Test_LF1
      {
          get
          {
              return GetValue&lt;int&gt;();
          }
          set
          {
              SetValue(value);
          }
      }
  }
  </code></pre>
  <p>For each player, I have a</p>
  <pre><code>TeamSquadViewModel data = new TeamSquadViewModel();
  </code></pre>
  <p>Test_RF1 and TestRF1 and results of a test at a certain date. So I want to have a ranking on the last tests results for each player.
  So how do I get the ranking of <code>Test_RF1</code>, <code>Test_LF1</code> and store it (I think I need 2 properties in my viewmodel) knowing that:
  Some players may have the same results. I may not have the results yet from a player. (I'm ok we consider it to be 0).</p>
  <p>Here an example:</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th>Rank</th>
  <th>Score</th>
  <th>Player</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td>1</td>
  <td>44</td>
  <td>Martin Dow</td>
  </tr>
  <tr>
  <td>2</td>
  <td>42</td>
  <td>Jason Doe</td>
  </tr>
  <tr>
  <td>2</td>
  <td>42</td>
  <td>Big Doe</td>
  </tr>
  <tr>
  <td>4</td>
  <td>41</td>
  <td>Gary Doe</td>
  </tr>
  <tr>
  <td>4</td>
  <td>41</td>
  <td>Bernard Doe</td>
  </tr>
  <tr>
  <td>4</td>
  <td>41</td>
  <td>Barry Doe</td>
  </tr>
  <tr>
  <td>7</td>
  <td>39</td>
  <td>Stephen Doe</td>
  </tr>
  <tr>
  <td>8</td>
  <td>0</td>
  <td>John Doe</td>
  </tr>
  </tbody>
  </table>
  </div>