Context: How does \Magento\Eav\Model\Entity\AbstractEntity::getSortedAttributes() work?
\Magento\Eav\Model\Entity\AbstractEntity::getSortedAttributes()