Skip to content

Commit

Permalink
sort events in event:list command
Browse files Browse the repository at this point in the history
  • Loading branch information
themsaid committed Apr 2, 2019
1 parent c84e44d commit 3437751
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Foundation/Console/EventListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,6 @@ protected function getEvents()

return collect($events)->map(function ($value, $key) {
return ['Event' => $key, 'Listeners' => implode("\n", $value)];
})->values()->toArray();
})->sortBy('Event')->values()->toArray();
}
}

0 comments on commit 3437751

Please sign in to comment.