---
title: Sorting Line Items
slug: netsuite/sorting-line-items
description: Learn how to order the Salesforce Opportunity Products List using different filters and the Sort Order field. Discover the Sort Products functionality provided by Salesforce for seamless organization. Find out how the default ordering works in the Breadwi
docTags: 
createdAt: 2022-03-25T13:33:38.000Z
---

# Salesforce Opportunity Products Order

The Opportunity Products List on the Opportunity can be in any order:

:::hint{type="info"}
By default, we will sort the opportunity products based on Sort Order, Created Date, and Name.
:::

**Created Date&#x20;**

The basic order will always be the **created date** of the opportunity products.

When we add/create multiple opportunity products at the same time, we can add them based on various filters, e.g., Name, Product Code, List Price, or any other field in the list view.

![](https://api.archbee.com/api/optimize/amOMwpmEgToJSqhaSTxXr/bbWV7Bzfk_UTqk1IVgVFY_image.png "Adding New Opportunity Products")

Hence, the created date becomes invalid for sorting/ordering purposes.

**Sort Order**

The standard **Sort Products** functionality provided by Salesforce helps rearrange the opportunity products in the list.

:::hint{type="info"}
Opportunity products will have a blank value in the Sort Order field unless we have used the sort functionality at least once.
:::

![](https://api.archbee.com/api/optimize/amOMwpmEgToJSqhaSTxXr/u3MxS7C9D8C4LPMreA2WV_tempsnip.png "Sort Products Functionality")

# Ordering the Child Object Records in Breadwinner

Suppose the default ordering provided by Breadwinner does not work in the various scenarios in which opportunity products are sorted in Salesforce. In that case, you can retrieve the child records in a specific order and send them to NetSuite in that exact order. This can be referenced using another field on the child object:

:::CodeblockTabs
Button URL&#x20;

```css
&co_sort_by=sort_field__c
```
:::

