I want to sort alphabetically the manufacturers images list.
I'm using this code and it generate the order that I have on magento admin
get(\Magento\Catalog\Api\ProductAttributeRepositoryInterface::class)
->get('manufacturer');
foreach ($attribute->getOptions() as $option) {
$src = $this->getViewFileUrl('images/' . $option->getLabel() . '.png');
?>
" alt="getLabel() ?>" onerror="this.onerror=null; this.remove(); " style="padding: 10px 20px;" width="200" height="200"/>
Please help