Log in
Model

Ordered

Magento\Sales\Model\Config\Ordered

What it does

This abstract class serves as a base for managing ordered collections of sales-related calculation models (like order totals, invoice totals, etc.) in Magento 2.

Developers extend this class when creating custom total collectors that need to be executed in a specific order based on configuration settings.

It handles loading, sorting, and caching of these collector models to ensure calculations are performed in the correct sequence.