X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fpart_event.pm;fp=FS%2FFS%2Fpart_event.pm;h=ded57154fe5ed866be92a890ae5f1e28a8e4588a;hp=1c2389989d2d7cf3ba16c7c4b1f68084ad329c61;hb=1b6859e5900403b984f75050d2939382b32d14d2;hpb=8ba643ad59f87ca7acb4d0e9770288e02bcbaf8a diff --git a/FS/FS/part_event.pm b/FS/FS/part_event.pm index 1c2389989..ded57154f 100644 --- a/FS/FS/part_event.pm +++ b/FS/FS/part_event.pm @@ -582,9 +582,11 @@ sub actions { my( $class, $eventtable ) = @_; ( map { $_ => $actions{$_} } - sort { $actions{$a}->{'default_weight'}<=>$actions{$b}->{'default_weight'} } - # || $actions{$a}->{'description'} cmp $actions{$b}->{'description'} } - $class->all_actions( $eventtable ) + sort { + $actions{$a}->{'default_weight'} <=> $actions{$b}->{'default_weight'} + || $actions{$a}->{'description'} cmp $actions{$b}->{'description'} + } + $class->all_actions( $eventtable ) ); }