Grouping post-types in loop

Yep, I don’t think this is something you can easily do natively.

Two ways that I see:

  1. Use posts_orderby to modify SQL request and order posts by post type, then just need to check so headings don’t repeat.

  2. Instead of looping through posts in order returned, take array of those and sort by post type before looping for output.