title: How do I group HTML List Items in an ASP.NET MVC View?
body: <p>I have this code in a view</p>
  
  <pre><code>&lt;ul&gt;
      @foreach (var tag in Model)
      {
          &lt;li&gt;&lt;a href="/Post/Tag/@tag.Id"&gt;@tag.Name&lt;/a&gt;&lt;/li&gt;
      }
  &lt;/ul&gt;
  </code></pre>
  
  <p>now I need to group List Items by its first character, like</p>
  
  <pre><code>A
   -Apple
   -Ant
  
  C
   -Car
  
  S
   -Sky
   -Sea
   -Sun
  </code></pre>
  
  <p>How can I achieve this?</p>