title: Group by range using linq
body: <p>how can we use groupped ranges for equal or greater than ?    </p>
  
  <pre><code>var data = new[] {
      new { Id = 0, Price = 2 },
      new { Id = 1, Price = 10 },
      new { Id = 2, Price = 30 },
      new { Id = 3, Price = 50 },
      new { Id = 4, Price = 120 },
      new { Id = 5, Price = 200 },
      new { Id = 6, Price = 1024 },
  };
  
  var ranges = new[] { 10, 50, 100, 500 };
  var grouped = data.GroupBy( x =&gt; ranges.FirstOrDefault( r =&gt; r &gt; x.Price ) );
  
  grouped ouput is 
  price 10-50 -&gt; 3 
  price 50-100 -&gt; 1 
  price 100-500 -&gt; 2 
  </code></pre>
  
  <p>Needed output is grouped by equal or greater than the range used</p>
  
  <pre><code>price &gt;= 10 -&gt; 6
  price &gt;= 50 -&gt; 4
  price &gt;= 100 -&gt; 3
  price &gt;= 500 -&gt; 1
  </code></pre>