Log in
Model

Price

Magento\PageBuilder\Model\Catalog\Sorting\Price

What it does

This class provides price-based sorting functionality for product collections in PageBuilder.

Developers use this class when they need to sort catalog products by price in ascending or descending order, typically in product listing widgets or dynamic blocks.

It handles both regular price sorting and price index-based sorting for better performance with large catalogs.

Public Methods

  • sort()
  • getLabel()