title: Sort object with array key in object array
body: <p>how can I sort Array in Object Array with element key ?</p>
  
  <p>Please see picture for more info :
  <img src="https://i.stack.imgur.com/2AfUB.jpg" alt="Array in object Array"></p>
  
  <p>So for example in picture you can see we have 8 object now , so we want to sort 8 object with key in new array for example sort 8 object with "<strong>parentId</strong>" key in array or "<strong>categoryName</strong>" key in array !!!</p>
  
  <p>But I think we have a problem because we can't access to key in new array !!!</p>
  
  <p>So I think this code can't help to me :</p>
  
  <pre><code> Array.Sort....
  </code></pre>
  
  <p><strong>Now how can I sort object with array key like this ?</strong></p>
  
  <p>Kind regards</p>