title: Sort posts by name & show first letter only once in wordpress
body: <p>I've got a problem, I display posts in wordpress ordered by title in ascending order, but what I want is to display first letter of group of posts, I mean</p>
  
  <pre><code>A: Annanas
     Apple
     Almond
  B: Banana
  G: Grape
  </code></pre>
  
  <p>I don't know how to implement something like this in standard loop </p>
  
  <pre><code>&lt;?php query_posts( array ( 'category_name' =&gt; 'publishers', 'orderby' =&gt; 'title', 'order' =&gt; 'ASC' ) ); ?&gt;
  &lt;?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?&gt;
      &lt;li&gt;
          &lt;?php the_title(); ?&gt;
      &lt;/li&gt;
  &lt;?php endwhile; endif; wp_reset_query(); ?&gt;
  </code></pre>
  
  <p>I'd be very happy if somebody can help me…</p>
  
  <p>Take care and have a nice day!</p>