---
title: "Keeping imported entries in date order"
date: 2026-11-23
updated: 2026-11-27
author: "Rafael Bennemann"
link: "https://www.gravitykit.com/docs/gravityimport/keeping-imported-entries-in-date-order/"
category: "GravityImport"
---

GravityImport adds the rows of your file as new entries in the order they appear in the file, so each row gets a higher entry ID than the row above it. The Gravity Forms **Entries** screen lists the highest entry ID first, which puts the last row of your file at the top of the screen.

A file exported from Gravity Forms lists entries by entry ID, highest first, which is usually newest first. Imported as it is, it leaves the oldest entry at the top of the **Entries** screen and the newest at the bottom. Sorting the file oldest first before the import gives you the newest entry at the top.

## Sort the file oldest first

- On the site the entries come from, go to **Settings**, then **General**, and note the **Timezone**. Gravity Forms writes each entry's date in that timezone when you export.
- Go to **Forms**, then **Import/Export**. On the **Export Entries** tab, select the form, tick **Select All** under **Select Fields**, and click **Download Export File**.
- Open the file in a spreadsheet and sort the rows by the **Entry Date** column, from oldest to newest, with the header row left at the top. The dates are written like `2026-02-11 10:12:00`, so an A to Z sort puts them in date order.
- Save the file as CSV.
- On the site you're importing into, go to **Settings**, then **General**, and set **Timezone** to the one you noted. GravityImport reads the dates in this site's timezone, so a different one moves every date by the difference.
- Go to **Forms**, then **Import Entries**, upload the file and choose the form, as [Getting started with GravityImport](https://www.gravitykit.com/docs/gravityimport/gravity-forms-import-entries/) shows.
- Because the file has an **Entry Id** column, a warning opens: "One of the columns in your CSV file maps to an Entry ID field." Click **Cancel**. The **Entry Id** column then shows **Select Form Field** on **Map Fields**, and every row is added as a new entry.

![The GravityImport warning on the Map Fields step: "WARNING! One of the columns in your CSV file maps to an Entry ID field. This will erase and overwrite all values for existing entries that share the same Entry ID. Click Cancel to create new entries during import." The Cancel button is outlined in red, with an arrow pointing at it.](https://www.gravitykit.com/wp-content/uploads/2026/11/gravityimport-entry-id-warning-cancel.png)
- Leave **Entry Date** ticked and mapped to **Entry Date**, so that each entry keeps the date it was created on the old site. In the settings that the gear icon beside the column opens, **This date is in UTC timezone** stays off, as it is by default.
- Gravity Forms writes the **Date Updated** column in UTC. To keep those dates too, click the gear icon beside **Date Updated**, turn on **This date is in UTC timezone**, and click **Update**.

![The date settings of the Date Updated column, which GravityImport reads as February 11, 2026 @ 15:12:00. The This date is in UTC timezone switch is off and outlined in red, with an arrow pointing at it, above the Update and Cancel buttons.](https://www.gravitykit.com/wp-content/uploads/2026/11/gravityimport-date-updated-utc-timezone.png)
- Click **Continue With Import**, and then **Continue With Import** again on the **Configure** step.
- If some rows fail, click **view log** to see why and fix the cause. Then click **Retry** or **Remap & Retry** on the same screen. Both buttons show the number of failed rows, and both keep the mapping of the first import. The **Entry Id** column stays out, and the date columns keep their format and their **This date is in UTC timezone** setting.

**Warning**: In GravityImport 2.1 to 2.12.7, a retry maps the **Entry Id** column to **Entry ID** again without the warning, and a retried row whose ID matches an entry of the form replaces that entry. Update GravityImport before you click **Retry** or **Remap & Retry**.

When the import finishes, the newest entry is at the top of the **Entries** screen.

![The Gravity Forms Entries screen of the Showroom appointments form after importing a file sorted oldest first. The entry from November 13, 2026 is at the top of the list and the entry from February 11, 2026 is at the bottom.](https://www.gravitykit.com/wp-content/uploads/2026/11/docs232-entries-newest-first.png)Rows imported with a retry come after the rest, so they get higher entry IDs and are listed above the newer entries. To see every entry in date order after a retry, list them by **Entry Date** as the "Entries you already imported" section shows.

---

## Entry IDs from the old site

The imported entries get new entry IDs on this site, and the IDs from the old site can't be kept. Mapping the **Entry Id** column to **Entry ID** tells GravityImport to update the entries that already have those IDs in the form, as [Updating existing entries with the GravityImport plugin](https://www.gravitykit.com/docs/gravityimport/updating-existing-entries-import-entries/) explains. Rows with an ID the form doesn't have are rejected with the error described in ["Row 

# ID does not exist for form" error](https://www.gravitykit.com/docs/gravityimport/row-1-id-does-not-exist-for-form-error/).

If links or notes elsewhere point to an entry by its ID, change them to the entry's new ID.

---

## Entries you already imported

The **Entries** screen lists entries by their entry IDs, which never change. To list the entries by date instead:

- On the form's **Entries** screen, click the gear icon at the right end of the column headings.
- Drag **Entry Date** from **Inactive Columns** to **Active Columns**, and click **Save**.
- Click the **Entry Date** heading twice. The first click lists the oldest entry first, and the second click lists the newest first.

![The Entries screen of the Showroom appointments form with an Entry Date column, sorted from the newest entry. The Entry Date heading is outlined in red with an arrow pointing at it, and the gear icon for choosing columns is at the right end of the headings.](https://www.gravitykit.com/wp-content/uploads/2026/11/docs232-entries-sorted-by-entry-date.png)The next time you open the **Entries** screen, it lists the entries by entry ID again. To have the newest entries at the top for good, import the file again sorted oldest first, check the new entries, and then delete the entries from the first import.

---

## Showing the entries in a View

A View uses its own sort settings. To list the entries by date in a View:

- Edit the View.
- In the **Settings** box, click the **Filter & Sort** tab.
- Set **Sort by field** to **Date Created** and **Sort direction** to **Descending**.
- Click **Update**.

[Sorting results by field value](https://www.gravitykit.com/docs/gravityview/filter-and-sort-results/sorting-results-by-field-value/) covers the other sort options.