Reordering Table Rows with Numbering

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?

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?

yes, thats it

Something like this?

CleanShot 2025-04-11 at 21.40.27

that would be ideal!

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.

1 Like

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

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.

Here you go:

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

3 Likes

This is absolutely perfect! thank you so much

1 Like

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

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

1 Like

@Darren_Murphy what if users need to delete rows?

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

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

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

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

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

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