# Insertion Order Not Working

**URL:** <https://forums.ankiweb.net/t/insertion-order-not-working/44739>\
**Category:** Help\
**Created:** [May 13, 2024, 1:08pm UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739 "2024-05-13T13:08:55Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [May 13, 2024, 1:08pm UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739/1 "2024-05-13T13:08:55Z")

</div>

I have this deck where the new card insertion order is sequential. AFAIK that should put new cards at the end of queue. But in this case it is misbehaving. For example I was reading GNU’s license that comes with VLC and added the word gratis to this deck from there. This shouldn’t be the first new card that Anki shows me today. It should’ve gotten a due number that’s less then other cards.

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [May 13, 2024, 1:10pm UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739/2 "2024-05-13T13:10:00Z")

</div>

AnkiDroid Version = 2.18.0 (464cf290cc77c3f2c562cb03b408b78a13be261b)

Backend Version = 0.1.38-anki24.04.1 (24.04.1 ccd9ca1a8309b80bcb50ddc5d99c7ce63440bce9)

Android Version = 11 (SDK 30)

ProductFlavor = full

Manufacturer = realme

Model = RMX2193

Hardware = mt6768

Webview User Agent = Mozilla/5.0 (Linux; Android 11; RMX2193 Build/RP1A.200720.011; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/124.0.6367.123 Mobile Safari/537.36

ACRA UUID = cf265e01-9693-407f-984d-61ddf9698fac

FSRS Enabled = true

Crash Reports Enabled = true

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [May 13, 2024, 1:19pm UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739/3 "2024-05-13T13:19:34Z")

</div>

Here is the deck in question: [Drive](https://drive.google.com/drive/folders/14LAXYORH7IFP_wnN0hIafQwYl_JxKBYi)

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [May 14, 2024, 12:49am UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739/4 "2024-05-14T00:49:45Z")

</div>

> [@sorata](#):
>
> It should’ve gotten a due number that’s less then other cards.

With a sequential insertion order, it should have gotten a New number that’s **higher** than (not less than) your New queue. But it’s not determined by your other cards (in that deck, in your collection) – it’s determined by where your database registers the bottom of your queue. That’s often the same, but it doesn’t have to be.

So – what New number did it get?

> [@sorata](#):
>
> This shouldn’t be the first new card that Anki shows me today.

Insertion order alone doesn’t control when it’s going to be shown to you. To set your expectations for that, you’d have to look at your New card gather and sort order options as well.

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [May 14, 2024, 4:34am UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739/5 "2024-05-14T04:34:09Z")

</div>

I think it’s going over my head maybe.

So now I have cards that range from 1030292 to 1030448. Okay so I added a card and it has a due number of 1030115.

 ![Screenshot_2024-05-14-10-03-46-72_a9eef3a2a561b80d5c76daebd0f9a14c](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/3X/7/c/7c341d203d9a8a1dbc9de870bbeceaf1718892e3.jpeg)

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [May 14, 2024, 4:36am UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739/6 "2024-05-14T04:36:22Z")

</div>

> [@Danika\_Dakika](#):
>
> To set your expectations for that, you’d have to look at your New card gather and sort order options as well.

Those things I checked. New cards are gathered a/c to Ascending position and sorted by Order gathered.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [May 14, 2024, 5:25am UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739/7 "2024-05-14T05:25:49Z")

</div>

That means that your “queue end” was probably still at 1030114. This can happen if you import cards that you didn’t create, or if your database gets out of sync. The easiest fix is to run Check Database.

[You also don’t have 1 million new cards, so you might want to consider Repositioning things to a more reasonable range of numbers, and _then_ Check Database.]

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [May 14, 2024, 5:30am UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739/8 "2024-05-14T05:30:59Z")

</div>

I did and now it’s working fine but the new card has a due number of 1030503. Tell me if I should be worried.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [May 14, 2024, 6:27am UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739/9 "2024-05-14T06:27:01Z")

</div>

What’s your concern?

---

<div class="post-metadata">

**Author:** ![sorata](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/sorata/32/34115_2.png) [@sorata](https://forums.ankiweb.net/u/sorata)\
**Post date:** [May 14, 2024, 9:40am UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739/10 "2024-05-14T09:40:17Z")

</div>

No I mean you said I might wanna reposition things to a more reasonable range, so I thought it might be a cause of concern for me. Nothing specific here.

---

<div class="post-metadata">

**Author:** ![Danika\_Dakika](https://sea2.discourse-cdn.com/flex002/user_avatar/forums.ankiweb.net/danika_dakika/32/17815_2.png) [@Danika\_Dakika](https://forums.ankiweb.net/u/Danika_Dakika)\
**Post date:** [May 14, 2024, 3:10pm UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739/11 "2024-05-14T15:10:07Z")

</div>

If the numbers get too large, they may reach the limit (possibly for the display before the stored number itself). Larger numbers are also harder to compare at-a-glance. Fix it or don’t, it’s up to you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/1X/8f1279ababc5879d54e4838989f606cfe55af8c7.jpeg) [@system](https://forums.ankiweb.net/u/system)\
**Post date:** [June 13, 2024, 3:10pm UTC](https://forums.ankiweb.net/t/insertion-order-not-working/44739/12 "2024-06-13T15:10:15Z")

</div>

Closed on June 13, 2024, 3:10pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
