Log in
Model

SortableBySaleabilityProvider

Magento\InventoryCatalog\Model\ResourceModel\SortableBySaleabilityProvider

What it does

This class determines whether product collections can be sorted by stock availability (saleability) in Magento's Multi-Source Inventory (MSI) system.

The default implementation returns false, indicating that sorting by stock status is not supported in the base catalog inventory.

Developers would use this when building product listing features that need to check if saleability-based sorting is available.

Public Methods

  • isSortableBySaleability()