ePages 6.17.39 - DE_EPAGES/Catalog/API/Object/PagerCategoryProducts.pm

Package DE_EPAGES::Catalog::API::Object::PagerCategoryProducts

Page visible product from Category. Support basic sorting by Attribute. Requiere option CurrencyID for sorting by list price.

Base
DE_EPAGES::Presentation::API::Object::Pager

Functions

sortObjects

sortObjects

Sorts the objects according to the 'OrderBy' and 'OrderDesc' attributes. The parameter CurrencyID is required for sorting by ListPrice. For sorting by attributes with value selection, add ".Value", for example OrderBy => 'Size.Value'. See also: DE_EPAGES::Product::API::Object::PagerLoopProducts::sortObjects.

Syntax
$aSortedObjects = $Pager->sortObjects($aObjects);
Input
$aObjects (ref.array.object)
list of products
Return
$aSortedObjects (ref.array.object)
sorted list of products