<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/3754830f-032a-4f4f-9dd8-faced6228851/pro1.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/3754830f-032a-4f4f-9dd8-faced6228851/pro1.png" width="40px" /> This is a PRO feature. Upgrade now.

</aside>

<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7bb10d49-e6e7-47a6-b7fc-11b3fdac5d20/home-icon-silhouette.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7bb10d49-e6e7-47a6-b7fc-11b3fdac5d20/home-icon-silhouette.png" width="40px" /> Help homepage

</aside>

<aside> <img src="/icons/list_gray.svg" alt="/icons/list_gray.svg" width="40px" /> Page contents

</aside>

Introduction

By default, the Notion API (how we connect to Notion) orders line items by ascending page creation time, i.e., the item you created first appears above the item you created second, even after reordering them in Notion.

PRO users can override this default ordering, by creating a Notion property for sorting.

Line items without sorting numbers will appear below items that do.

Quick Instructions:

  1. Create a number property in your Notion line items database, e.g called “Sort Order”
  2. Make the “Sort Order” property visible in the line items table in the Notion invoice database template.
  3. In Pop Invoice edit the invoice template and select the “Sort Order” property.
  4. You’re now ready to create a new invoice - and number your line items in the order you want them to appear.

Detailed Instructions:

1. Set up your Notion database

If you are using our latest Starter Template (after 25 August, 2023), then you can skip straight to 2. Edit the invoice template in Pop Invoice.

If you are using an older Starter Template or using your own custom invoice database, follow the setup below.

  1. Create a new number property in your Invoice Items database.

I have created one called “Sort order”, but you can name it anything you want.

![Untitled](<https://s3-us-west-2.amazonaws.com/secure.notion-static.com/5926c6b6-847c-4406-9d18-f5f33637ac82/Untitled.png>)
  1. Edit the Invoice template in your Invoices database.

Click the down arrow next to the “New” button to reveal the templates, then click on the … dots to edit the Invoice Template.

![line items ordering.png](<https://s3-us-west-2.amazonaws.com/secure.notion-static.com/c5a594ac-8923-4675-a330-a81c24199a71/line_items_ordering.png>)
  1. Make the new property visible in the Invoice line items table

Click on the … dots next to the New button. Go into the Properties menu and make the sorting property visible (see the video below).

[sorting-1.mp4](<https://s3-us-west-2.amazonaws.com/secure.notion-static.com/7d59f4b2-e5c7-4ba0-ad0b-3002f0d3ba91/sorting-1.mp4>)

2. Edit the invoice template in Pop Invoice