X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/013804fdf4b69b04889d8bf8af182eda9e9d95a5..d7d5ec6c9a8763e8939a458cff7994a69e18ed10:/SL/DB/RequirementSpecItem.pm diff --git a/SL/DB/RequirementSpecItem.pm b/SL/DB/RequirementSpecItem.pm index 5e7d46c91..d07ed04c8 100644 --- a/SL/DB/RequirementSpecItem.pm +++ b/SL/DB/RequirementSpecItem.pm @@ -104,8 +104,7 @@ sub children_sorted { croak "Not a writer" if @args; - my @children = sort { $a->position <=> $b->position } $self->children; - return wantarray ? @children : \@children; + return [ sort { $a->position <=> $b->position } $self->children ]; } sub section { @@ -150,9 +149,8 @@ Returns the C for children of C<$self>. =item C -Returns an array (or an array reference depending on context) of -direct children (not of grandchildren) for C<$self> ordered by their -positional column in ascending order. +Returns an array reference of direct children (not of grandchildren) +for C<$self> ordered by their positional column in ascending order. =item C