if ($noJS && is_array($jsData)):
foreach($jsData as $letter => $speakers):
?>
endforeach;
endif;
?>
if ($noJS && is_array($jsData)):
foreach($jsData as $letter => $topics):
?>
// sort speakers by sortable
usort($topics, function ($a, $b) {
$aSort = strtolower($a->topic_name);
$bSort = strtolower($b->topic_name);
if ($aSort < $bSort) return -1;
else if ($aSort > $bSort) return 1;
else return 0;
});
foreach($topics as $topic):
?>
endforeach;
?>
endforeach;
endif;
?>