title: Grouping words according to their lengths c#
body: <p>Is it possible to group a string of words according to their lengths into array? I'm trying the following code, but it doesn't work. Thank you. </p>
  
  <pre><code>string [] groups =
        from word in words.split(' ')
        orderby word ascending
        group word by word.Length into lengthGroups
        orderby lengthGroups.Key descending
        select new { Length = lengthGroups.Key, Words = lengthGroups };
  </code></pre>