Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Orders Namespace / BasketItemComparer Class / GetSortPriority Method
The item to get sort priority for.
If true, child items are treated as products. If false, the sort priority is based on the type of the child item.
In This Topic
    GetSortPriority Method (BasketItemComparer)
    In This Topic
    Determines the sort priority based on item type.
    Syntax
    public int GetSortPriority( 
       BasketItem item,
       bool treatChildAsParent
    )

    Parameters

    item
    The item to get sort priority for.
    treatChildAsParent
    If true, child items are treated as products. If false, the sort priority is based on the type of the child item.

    Return Value

    An integer indicating the sort priority, lower values should appear before higher values.
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also