=head1 SYNOPSIS
-See L<Catalyst>.
+See L<Catalyst::DispatchType>.
=head1 DESCRIPTION
+Dispatch type managing full path matching behaviour. For more information on
+dispatch types, see:
+
+=over 4
+
+=item * L<Catalyst::Manual::Intro> for how they affect application authors
+
+=item * L<Catalyst::DispatchType> for implementation information.
+
+=back
+
=head1 METHODS
=head2 $self->list($c)
$path = '/' if !defined $path || !length $path;
- foreach my $action ( @{ $self->_paths->{$path} || [] } ) {
+ # sort from least args to most
+ my @actions = sort { ($b->attributes->{Args}||0) <=>
+ ($a->attributes->{Args}||0) }
+ @{ $self->_paths->{$path} || [] };
+
+ foreach my $action ( @actions ) {
next unless $action->match($c);
$c->req->action($path);
$c->req->match($path);