Skip to content

Commit

Permalink
Merge pull request #26 from ElementareTeilchen/moreHelpfulUserSorting
Browse files Browse the repository at this point in the history
[FEATURE] show and sort editor names by lastname
  • Loading branch information
aertmann authored Feb 2, 2021
2 parents b21743f + 05ba610 commit a002382
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Controller/HistoryController.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public function indexAction(
$accountIdentifiers = $this->nodeEventRepository->findAccountIdentifiers('live', $siteIdentifier ?: null, $nodeIdentifier ?: null);
foreach ($accountIdentifiers as $identifier) {
$user = $this->userService->getUser($identifier);
$accounts[$identifier] = $user ? $user->getName()->getFullName() : $identifier;
$accounts[$identifier] = $user ? $user->getName()->getLastName() . ', ' . $user->getName()->getFirstName() : $identifier;
}

/** @var NodeEvent[] $events */
Expand Down

0 comments on commit a002382

Please sign in to comment.