Fehler bei Sortierung der Themen und Fächer behoben
This commit is contained in:
@@ -54,6 +54,11 @@ class TopicData
|
||||
|
||||
$topicDirectory = "config/subjects/$subjectId/topics";
|
||||
$topicNames = scandir($topicDirectory);
|
||||
|
||||
usort($topicNames, function ($a, $b) {
|
||||
return strcmp($a, $b);
|
||||
});
|
||||
|
||||
foreach ($topicNames as $topicName) {
|
||||
if ($topicName == "." || $topicName == "..") {
|
||||
continue;
|
||||
@@ -66,10 +71,6 @@ class TopicData
|
||||
$result[$topicData->id] = $topicData;
|
||||
}
|
||||
|
||||
usort($result, function ($a, $b) {
|
||||
return strcmp($a->displayName, $b->displayName);
|
||||
});
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user