# Reordering Table Rows with Numbering

**URL:** <https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288>\
**Category:** Ask for Help\
**Created:** [April 11, 2025, 12:31pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288 "2025-04-11T12:31:53Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![Si\_Gal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/si_gal/32/79433_2.png) [@Si\_Gal](https://community.glideapps.com/u/Si_Gal)\
**Post date:** [April 11, 2025, 12:31pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/1 "2025-04-11T12:31:53Z")

</div>

Hi,

I am looking to build a prompt using some templates I have developed. I am not trying to get Ai to generate a prompt for me.

Within each row of my table, I am crafting a part of the prompt. But the order of the prompt is very important and I would like and easy way to reorder sections and have a cronological number assigned to a number field of a row based on where it is on the user interface.

I was thinking about having a button to move it up and a button to move it down as first potential solution but I’m not quite sure how to set it up. Has anyone created anything similar?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 11, 2025, 1:14pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/2 "2025-04-11T13:14:49Z")

</div>

I think I could give you a solution, but before I do I just want to be sure that I’m clear.

Just restating in my own words:

- You want a method to be able to manually order a list, and have the list items dynamically numbered based on the current order.

Yes?

---

<div class="post-metadata">

**Author:** ![Si\_Gal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/si_gal/32/79433_2.png) [@Si\_Gal](https://community.glideapps.com/u/Si_Gal)\
**Post date:** [April 11, 2025, 1:26pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/3 "2025-04-11T13:26:01Z")

</div>

> [@Darren\_Murphy](#):
>
> nt order.

yes, thats it

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 11, 2025, 1:41pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/4 "2025-04-11T13:41:09Z")

</div>

Something like this?

![CleanShot 2025-04-11 at 21.40.27](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/3/5/354663f32cc369b1c59fbf3ec37b47c1d12d93b2.gif)

---

<div class="post-metadata">

**Author:** ![Si\_Gal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/si_gal/32/79433_2.png) [@Si\_Gal](https://community.glideapps.com/u/Si_Gal)\
**Post date:** [April 11, 2025, 2:11pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/5 "2025-04-11T14:11:09Z")

</div>

that would be ideal!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 11, 2025, 2:17pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/6 "2025-04-11T14:17:18Z")

</div>

Okay, I just published that as a template. See if you can make a copy.

I am aware that there have been some issues with private templates lately, so if you can’t copy it let me know and I’ll make a video.

> **[List Ordering Concept](https://go.glideapps.com/template/Kq4K8qcik5c3CFeGShCm-template-published?privateTemplateToken=S0E5gb01MjYvZkcebBSf)**

---

<div class="post-metadata">

**Author:** ![fk1214](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/fk1214/32/71058_2.png) [@fk1214](https://community.glideapps.com/u/fk1214)\
**Post date:** [April 11, 2025, 2:37pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/7 "2025-04-11T14:37:17Z")

</div>

I also need it but the template isn’t working!!!

---

<div class="post-metadata">

**Author:** ![Si\_Gal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/si_gal/32/79433_2.png) [@Si\_Gal](https://community.glideapps.com/u/Si_Gal)\
**Post date:** [April 11, 2025, 2:54pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/8 "2025-04-11T14:54:50Z")

</div>

Unfortuanately I can’t a copy so a video would be great if you don’t mind. I was able to see the columns you created so I think I understand just about what you have done but would be great to get a look at the set up of the if column and queries.

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 11, 2025, 3:43pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/9 "2025-04-11T15:43:10Z")

</div>

Here you go:

https://www.loom.com/embed/d6df70135e814b34bbba8a257c028e8c

[https://www.loom.com/share/d6df70135e814b34bbba8a257c028e8c](https://www.loom.com/share/d6df70135e814b34bbba8a257c028e8c)

---

<div class="post-metadata">

**Author:** ![Si\_Gal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/si_gal/32/79433_2.png) [@Si\_Gal](https://community.glideapps.com/u/Si_Gal)\
**Post date:** [April 11, 2025, 4:19pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/10 "2025-04-11T16:19:21Z")

</div>

This is absolutely perfect! thank you so much

---

<div class="post-metadata">

**Author:** ![DarrenHumphries](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darrenhumphries/32/91715_2.png) [@DarrenHumphries](https://community.glideapps.com/u/DarrenHumphries)\
**Post date:** [April 11, 2025, 4:38pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/11 "2025-04-11T16:38:48Z")

</div>

Nice solution! I was think of a workflow that changes an order value on all rows but this is much better!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 11, 2025, 11:16pm UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/12 "2025-04-11T23:16:24Z")

</div>

I heard that Glide resolved the issue with copying templates. Do you want to try again?

---

<div class="post-metadata">

**Author:** ![tuzin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tuzin/32/86077_2.png) [@tuzin](https://community.glideapps.com/u/tuzin)\
**Post date:** [April 12, 2025, 10:47am UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/13 "2025-04-12T10:47:15Z")

</div>

@Darren_Murphy what if users need to delete rows?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 13, 2025, 3:47am UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/14 "2025-04-13T03:47:20Z")

</div>

If a user deletes a row, there will be one less row in the table 🙂

---

<div class="post-metadata">

**Author:** ![tuzin](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/tuzin/32/86077_2.png) [@tuzin](https://community.glideapps.com/u/tuzin)\
**Post date:** [April 13, 2025, 5:22am UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/15 "2025-04-13T05:22:37Z")

</div>

I mean that if you delete a row with a custom index, another row will potentially not find the previous/next row and therefore the model will break

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 13, 2025, 7:45am UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/16 "2025-04-13T07:45:54Z")

</div>

mmm yes, you’re right. That can break it.

---

<div class="post-metadata">

**Author:** ![Si\_Gal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/si_gal/32/79433_2.png) [@Si\_Gal](https://community.glideapps.com/u/Si_Gal)\
**Post date:** [April 13, 2025, 7:59am UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/17 "2025-04-13T07:59:52Z")

</div>

Presumably you could push it to the bottom and then delete it?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [April 13, 2025, 8:02am UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/18 "2025-04-13T08:02:14Z")

</div>

Yes, deleting from the bottom (or top) doesn’t break it. It only breaks if you delete a row in the middle.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 20, 2025, 8:02am UTC](https://community.glideapps.com/t/reordering-table-rows-with-numbering/81288/19 "2025-04-20T08:02:49Z")

</div>

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