Product Selector

Fusion 5.12
    Fusion 5.12

    pyramidSort

    Description

    Sorts values in a pyramid fashion

    Usage

    In HTML Template Binding

    {{ pyramidSort_expression | pyramidSort:field }}

    In JavaScript

    $filter('pyramidSort')(items, field)

    Parameters

    ParamTypeDetails
    itemsobject

    Array of values

    fieldstring

    The field to sort on.