spacing
authorIvan Kohler <ivan@freeside.biz>
Wed, 13 Sep 2017 05:13:08 +0000 (22:13 -0700)
committerIvan Kohler <ivan@freeside.biz>
Wed, 13 Sep 2017 05:13:08 +0000 (22:13 -0700)
FS/FS/part_event.pm

index 1c23899..ded5715 100644 (file)
@@ -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 )
   );
 
 }