title: How to order a list using the child dictionary inside using Linq?
body: <pre><code>public class A {
    public string Name {get; set;}
    public Dictionary&lt;string, decimal&gt; B {get; set;}
  }
  </code></pre>
  <p>How can I order a List&lt; A &gt; using values from B?
  Example:</p>
  <pre><code>var list = new List&lt;A&gt;(){
    new A(){
      Name = &quot;data1&quot;,
      B = new Dictionary&lt;string, decimal&gt;()
        {&quot;QTY&quot;, 10},
        {&quot;PRICE&quot;, 20}
    },
    new A(){
      Name = &quot;data2&quot;,
      B = new Dictionary&lt;string, decimal&gt;()
        {&quot;QTY&quot;, 100},
        {&quot;PRICE&quot;, 200}
    },
  };
  </code></pre>
  <p>**I want to order the list by &quot;QTY&quot; ascending.</p>