How to show blogroll for multiple categories

I want to show a blogroll of links which are all segemented to their own categories. would be the code to do that?

here’s how the structure looks like;

Category A
link 1
link 2

Category B
link 1
link 2
etc…

You can find more information about bookmarks (the blogroll) on the WP Codex.

<h2>Category A</h2>
<ul>
<?php 
wp_list_bookmarks('title_li=&categorize=0&category_name=categoryA&orderby=name');
?>
</ul>

<h2>Category B</h2>
<ul>
<?php 
wp_list_bookmarks('title_li=&categorize=0&category_name=categoryB&orderby=name');
?>
</ul>