title: How to sort a list after AddRange?
body: <p>new to C#, SQL and Linq. I have two lists, one "dataTransactions" (fuel from gas stations) and a similar one "dataTransfers" (fuel from slip tanks).</p>
  
  <p>They each access a different table from SQL and get combined later.</p>
  
  <pre><code>        List&lt;FuelLightTruckDataSource&gt; data = new List&lt;FuelLightTruckDataSource&gt;();
  
          using (SystemContext ctx = new SystemContext())
          {
  
              List&lt;FuelLightTruckDataSource&gt; dataTransactions
                  = ctx.FuelTransaction
                      .Where(tx =&gt; DbFunctions.TruncateTime(tx.DateTime) &gt;= from.Date &amp;&amp; DbFunctions.TruncateTime(tx.DateTime) &lt;= to.Date
                          //&amp;&amp; tx.AssetFilled.AssignedToEmployee.Manager
                          &amp;&amp; tx.AssetFilled.AssignedToEmployee != null
                          //&amp;
                          &amp;&amp; tx.AssetFilled.AssetType.Code == "L"
                          &amp;&amp; (tx.FuelProductType.FuelProductClass.Code == "GAS" || tx.FuelProductType.FuelProductClass.Code == "DSL"))
                      .GroupBy(tx =&gt; new { tx.AssetFilled, tx.DateTime, tx.FuelProductType.FuelProductClass, tx.FuelCard.FuelVendor, tx.City, tx.Volume, tx.Odometer}) //Added tx.volume to have individual transactions
                      .Select(g =&gt; new FuelLightTruckDataSource()
                      {
                          Asset = g.FirstOrDefault().AssetFilled,
                          Employee = g.FirstOrDefault().AssetFilled.AssignedToEmployee,
                          ProductClass = g.FirstOrDefault().FuelProductType.FuelProductClass,
                          Vendor = g.FirstOrDefault().FuelCard.FuelVendor,
                          FillSource = FuelFillSource.Transaction,
                          Source = "Fuel Station",
                          City = g.FirstOrDefault().City.ToUpper(),
                          Volume = g.FirstOrDefault().Volume,
                          Distance = g.FirstOrDefault().Odometer,
                          Date = g.FirstOrDefault().DateTime
  
                      })
                      .ToList();
  </code></pre>
  
  <p>In the end, I use</p>
  
  <pre><code>            data.AddRange(dataTransactions);
              data.AddRange(dataTransfers);
  </code></pre>
  
  <p>to put the two lists together and generate a fuel consumption report. 
  Both lists are individually sorted by Date, but after "AddRange" the "dataTransfers" just gets added to the end, losing my sort by Date. How do I sort the combined result again by date after using the "AddRange" command?</p>