I have links going to category pages on a WordPress blog. These category pages show all the posts that are in that category and sub-categories. I want to group these lists by the authors.

I guess need to modify category.php to first list all the authors which have posts in that particular category and then run WP\_Query multiple times for each author. The second part is okay, but I can't figure out how to get the list of authors of only those posts in this category.