# Sort Repeating Grid by Location HELP

**URL:** <https://forum.bubble.io/t/sort-repeating-grid-by-location-help/8365>\
**Category:** Need help\
**Created:** [November 30, 2016, 2:39am UTC](https://forum.bubble.io/t/sort-repeating-grid-by-location-help/8365 "2016-11-30T02:39:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lnorbido](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@lnorbido](https://forum.bubble.io/u/lnorbido)\
**Post date:** [November 30, 2016, 2:39am UTC](https://forum.bubble.io/t/sort-repeating-grid-by-location-help/8365/1 "2016-11-30T02:39:48Z")

</div>

Hey guys totally need help. As the tittle says i want to sort a repeating grid by closest location to users geographic address using Bubbles built in GEO address feature. Would totally appreciate it and be so thankful for the help 🙂

---

<div class="post-metadata">

**Author:** ![wysamx](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/wysamx/32/7934_2.png) [@wysamx](https://forum.bubble.io/u/wysamx)\
**Post date:** [November 30, 2016, 11:42am UTC](https://forum.bubble.io/t/sort-repeating-grid-by-location-help/8365/2 "2016-11-30T11:42:36Z")

</div>

Make the Repeating Group data source = location variable (could easily create that in your database) for ex: location = geographic address. Now add a workflow when the page load or every 5 seconds, location = current geographic position. See, whenever the location has the geographic position, it’s going to pass it to your repeating group. I hope that helps!

---

<div class="post-metadata">

**Author:** ![lnorbido](https://avatars.discourse-cdn.com/v4/letter/l/b3f665/32.png) [@lnorbido](https://forum.bubble.io/u/lnorbido)\
**Post date:** [December 1, 2016, 6:58am UTC](https://forum.bubble.io/t/sort-repeating-grid-by-location-help/8365/3 "2016-12-01T06:58:05Z")

</div>

Thank you so much dude!!! Really appreciated it 😃

---

<div class="post-metadata">

**Author:** ![NigelG](https://avatars.discourse-cdn.com/v4/letter/n/ea5d25/32.png) [@NigelG](https://forum.bubble.io/u/NigelG)\
**Post date:** [December 1, 2016, 10:27am UTC](https://forum.bubble.io/t/sort-repeating-grid-by-location-help/8365/4 "2016-12-01T10:27:23Z")

</div>

You could also look at sorting the repeating Group, so in your search …click on Sort Fields…

![](https://us1.discourse-cdn.com/bubble/original/2X/b/bf65318ef1d2f2820998e8c83cbd3d554c3f3048.png)

You will of course need a Geographic Address but if you sort by that field, you will then get the relevant sort criteria.
