Skip to content

Commit

Permalink
seboettg#157 sort, apa,csl status
Browse files Browse the repository at this point in the history
  • Loading branch information
glorieux-f committed Aug 3, 2023
1 parent 116b470 commit 06ac76c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Style/Sort/Sort.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,12 @@ private function performSort($keyNumber, $dataToSort)
} elseif ($variable === "citation-number") {
$sortKey = $citationNumber + 1;
} else {
$sortKey = mb_strtolower(strip_tags($dataItem->{$variable}));
if (!isset($dataItem->{$variable})) {
$sortKey = "status";
}
else {
$sortKey = mb_strtolower(strip_tags($dataItem->{$variable}));
}
}
$groupedItems[$sortKey][] = $dataItem;
}
Expand Down

0 comments on commit 06ac76c

Please sign in to comment.