# Auto Numbering Sorting with Previous Row

**URL:** <https://community.glideapps.com/t/auto-numbering-sorting-with-previous-row/66026>\
**Category:** Ask for Help\
**Created:** [September 12, 2023, 6:29am UTC](https://community.glideapps.com/t/auto-numbering-sorting-with-previous-row/66026 "2023-09-12T06:29:34Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![biha](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/biha/32/84110_2.png) [@biha](https://community.glideapps.com/u/biha)\
**Post date:** [September 13, 2023, 5:25am UTC](https://community.glideapps.com/t/auto-numbering-sorting-with-previous-row/66026/14 "2023-09-13T05:25:24Z")

</div>

@ThinhDinh ,

I just found this thread. I managed to do what i need, based on your idea. Hehehehheheehe, thank you.

What did you eat everyday eh? because so brilliant.

> [@Find Value from Previous Row](https://community.glideapps.com/t/find-value-from-previous-row/56330/4):
>
> So I assume you store each place’s address/coordinates? What you can do is this: Create an index for each row, as described below Please note that the index should be related to each “trip” only, since you want to index each row based only on their respective list. You should have a “Trip ID” that is unique to each trip. Create a Math column, name it “Previous Index”, take the index from the 1st step, minus 1. Create a Template column, name it “Previous Index Temp”, the template should j…

---

_[View the full topic](https://community.glideapps.com/t/auto-numbering-sorting-with-previous-row/66026)._
