ListSort
Magento\Catalog\Model\Config\Source\ListSort
What it does
This class provides a source model for populating dropdown options with available product sorting attributes in the Magento admin configuration.
Developers use it when configuring which attributes can be used to sort product lists on the frontend, such as sorting by price, name, or custom attributes.
It's typically referenced in system.xml configuration files to define sorting options.
Public Methods
- toOptionArray()