title: Sort string array by element length
body: <p>Having an array of strings how can I update it so its elements are sorted by its length.</p>
  
  <p>I was trying</p>
  
  <pre><code>string[] arr = {"aa","ss","a","abc"};
  arr = arr.OrderBy(aux =&gt; aux.Length);
  </code></pre>
  
  <p>So, I would get <code>a,aa,ss,abc</code>, but it says </p>
  
  <blockquote>
    <p>cannot implicitly convert type 'system.linq.iorderedenumerable
    to string[]'</p>
  </blockquote>
  
  <p>So, I was doing</p>
  
  <pre><code>foreach (string s in arr.OrderBy(str =&gt; str.Length))
  {
      //
  }
  </code></pre>
  
  <p>Is there other way to do this?</p>