---
schema_version: "1"
id: bfc0a890298f7bc32b60e79ef24da8b47505df531b4f534416786c034d31f2cd
title: Strategy Builder Sort Element
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/nba_strategy_elements_sort.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.nba_strategy_elements_sort.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: f59c74b37adbd52c691fa901118931230deb27589695cf9f53301481220ef013
description: Choose how recommendations are ordered within a branch and reorder them using Recommendation fields.
products:
  - Flow Builder
  - Salesforce Platform
release: "264"
---
# Strategy Builder Sort Element

Choose how recommendations are ordered within a branch and reorder them using Recommendation fields.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;"><a href="https://help.salesforce.com/s/articleView?id=platform.nba_ref_editions.htm&amp;release=264.0.0&amp;type=5" title="Learn about the editions and user interfaces that support Next Best Action.">View supported editions for Next Best Action</a>.</td></tr></tbody></table>

 
| Field | Description |
| --- | --- |
| Label | The name of the element as it appears on the canvas. |
| API Name | The API name of the element. The API name must be unique. |
| Description | Optional description of the element and how it works within the strategy. |
| Recommendation Field | Choose a field from the Recommendation object to sort on. |
| Sort Direction | Choose whether you want to sort your recommendations in an ascending or descending order. |
| Sort Empty Values to Top | Recommendations that don’t contain information in the field you chose in Recommendation Field are sorted to the top when selected. |
| Maximum Recommendations | Limits the number of recommendations allowed to pass through the element. |

## Usage

Sort the order of your recommendations in a branch by choosing a value from the Recommendation object to sort on. Choose whether you want to sort in an ascending or descending order, and decide how many recommendations to allow through.

#### See Also

- [Suggest Options with Recommendation Strategies](https://help.salesforce.com/s/articleView?id=platform.einstein_next_best_action.htm&release=264.0.0&type=5 "Use Einstein Next Best Action to deliver tailored recommendations at the right moment. Define strategies that apply your business logic to surface a few high-value offers such as repairs, discounts, or add-on services. Present the final recommendations in your Automation Lightning app or Experience Builder site.")
- [Create Recommendations](https://help.salesforce.com/s/articleView?id=platform.nba_recommendations_app.htm&release=264.0.0&type=5 "Create offers or actions to recommend to users using Einstein Next Best Action. Recommendations are standard Salesforce records, similar to accounts and contacts, that are processed by strategies and associated with flows. Strategies determine which recommendation records are surfaced using business rules, predictive models, and other data sources. The result of this process is context-specific recommendations that you present to your users.")
- [Display Recommendations](https://help.salesforce.com/s/articleView?id=platform.nba_admin_using_strategies.htm&release=264.0.0&type=5 "After creating a strategy, choose a page to run your strategy and display your recommendations. You can use a Lightning record page, an app’s home page, an Experience Cloud site page, a Visualforce page, or an external site, depending on where you want recommendations to appear.")