C# how to sort a list without implementing IComparable manually?
<p>I have a fairly complex scenario and I need to ensure items I have in a list are sorted. </p>

<p>Firstly the items in the list are based on a struct that contains a sub struct. </p>

<p>For example:</p>

<pre><code>public struct topLevelItem
{
 public custStruct subLevelItem;
}

public struct custStruct
{
  public string DeliveryTime;
}
</code></pre>

<p>Now I have a list comprised of topLevelItems for example:</p>

<pre><code>var items = new List&lt;topLevelItem&gt;();
</code></pre>

<p>I need a way to sort on the DeliveryTime ASC. What also adds to the complexity is that the DeliveryTime field is a string. Since these structs are part of a reusable API, I can't modify that field to a DateTime, neither can I implement IComparable in the topLevelItem class. </p>

<p>Any ideas how this can be done?</p>

<p>Thank you</p>
