Skip to content

Commit

Permalink
Merge pull request #1 from RsrchBoy/master
Browse files Browse the repository at this point in the history
sort the role names
  • Loading branch information
friedo committed Jun 24, 2012
2 parents b8bab83 + adc46ec commit ca1a048
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/Pod/Weaver/Section/Consumes.pm
Expand Up @@ -30,7 +30,11 @@ sub weave_section {

return unless $module->can( 'meta' );

my @roles = grep { $_->name ne $module } $self->_get_roles( $module );
my @roles = sort
grep { $_ ne $module }
map { $_->name }
$self->_get_roles( $module );

return unless @roles;

my @pod = (
Expand All @@ -42,7 +46,7 @@ sub weave_section {
( map {
Command->new( {
command => 'item',
content => sprintf '* L<%s>', $_->name
content => "* L<$_>",
} ),
} @roles ),

Expand Down

0 comments on commit ca1a048

Please sign in to comment.