# Enumerate items and re order

**URL:** <https://community.glideapps.com/t/enumerate-items-and-re-order/65811>\
**Category:** Ask for Help\
**Created:** [September 5, 2023, 10:08pm UTC](https://community.glideapps.com/t/enumerate-items-and-re-order/65811 "2023-09-05T22:08:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rimatcom](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rimatcom/32/32285_2.png) [@Rimatcom](https://community.glideapps.com/u/Rimatcom)\
**Post date:** [September 5, 2023, 10:08pm UTC](https://community.glideapps.com/t/enumerate-items-and-re-order/65811/1 "2023-09-05T22:08:12Z")

</div>

Hi, is there any way to enumerated items?

For example

Picture a - 1  
Picture b - 2  
Picture c - 3

but if user re arrange item, the app must enumerate again like

Pic c - 1  
Pic a - 2  
Pic b - 3

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [September 5, 2023, 10:52pm UTC](https://community.glideapps.com/t/enumerate-items-and-re-order/65811/2 "2023-09-05T22:52:16Z")

</div>

Not sure exactly how a user in your app will be able to rearrange items, but yes, you can add a dynamic index to each item using this trick:

> [@Assigning unique IDs within column cateogry](https://community.glideapps.com/t/assigning-unique-ids-within-column-cateogry/63415/7):
>
> Try this: Add a RowID column to your table. Create a multiple relation column that matches the shelter name with itself Create a Lookup column targets the RowID column via that relation. This will give you an array of RowIDs Use the Find Element Index column to find the index of the RowID in the array of RowIDs Use that in a template column to assign the ID to each dog. Here is what that might look like: Note that array indexes are zero based. If you w…

---

<div class="post-metadata">

**Author:** ![Rimatcom](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rimatcom/32/32285_2.png) [@Rimatcom](https://community.glideapps.com/u/Rimatcom)\
**Post date:** [September 6, 2023, 10:47am UTC](https://community.glideapps.com/t/enumerate-items-and-re-order/65811/3 "2023-09-06T10:47:45Z")

</div>

Thanks Robert, the idea is that the user uploads a few pictures, every picture would have a number like 1,2,3 just for an internal arrangement/order. But if the user wants that the picture number 3 be the picture number 1, he must drag the pictures and the app would change the order or I have to put a sort of number textbox in order to let the user assign the arrangement/order.  
I dont know wich term used for this, but note that for me arrangement is order, order of the list not a purcharse order.

---

<div class="post-metadata">

**Author:** ![nathanaelb](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nathanaelb/32/43079_2.png) [@nathanaelb](https://community.glideapps.com/u/nathanaelb)\
**Post date:** [September 6, 2023, 4:26pm UTC](https://community.glideapps.com/t/enumerate-items-and-re-order/65811/4 "2023-09-06T16:26:32Z")

</div>

@Rimatcom

It seems the RowIndex column and PhotoIndex column in the table would be independent of each other.

- PhotoIndex will be defined by your user when they re-arrange.
- RowIndex you can set up [as explained here](https://community.glideapps.com/t/rowid-is-great-could-really-use-row-number/16834/13).
