… | |
… | |
480 | |
480 | |
481 | @match = map $self->{command}{$_->[0]}, |
481 | @match = map $self->{command}{$_->[0]}, |
482 | sort { |
482 | sort { |
483 | $a->[1] <=> $b->[1] |
483 | $a->[1] <=> $b->[1] |
484 | or $self->{command}{$a->[0]}[4] <=> $self->{command}{$b->[0]}[4] |
484 | or $self->{command}{$a->[0]}[4] <=> $self->{command}{$b->[0]}[4] |
|
|
485 | or (length $a->[0]) <=> (length $b->[0]) |
485 | } @match; |
486 | } @match; |
486 | |
487 | |
487 | $self->{last_search} = $cmd; |
488 | $self->{last_search} = $cmd; |
488 | $self->{last_match} = \@match; |
489 | $self->{last_match} = \@match; |
489 | |
490 | |