# Show only the three nearest location

**URL:** <https://community.glideapps.com/t/show-only-the-three-nearest-location/38972>\
**Category:** Ask for Help\
**Created:** [February 25, 2022, 9:43pm UTC](https://community.glideapps.com/t/show-only-the-three-nearest-location/38972 "2022-02-25T21:43:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Food2Soil](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/food2soil/32/659_2.png) [@Food2Soil](https://community.glideapps.com/u/Food2Soil)\
**Post date:** [February 25, 2022, 9:43pm UTC](https://community.glideapps.com/t/show-only-the-three-nearest-location/38972/1 "2022-02-25T21:43:37Z")

</div>

I have all my stores in a map. Show user location is on. I am calculating distance of user from each store in a column. I only want the user to see the three nearest locations. How do I accomplish this? I can’t find a way to sort the locations and store it in another column. Thankyou for any help this community can provide.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [February 26, 2022, 12:42am UTC](https://community.glideapps.com/t/show-only-the-three-nearest-location/38972/2 "2022-02-26T00:42:58Z")

</div>

> [@compass Location Component](https://community.glideapps.com/t/location-component/10976/52):
>
> If you have the distance column set up already, you can just sort the inline list component ascendingly by that distance value, and limit the number of items to 3. [image] [image]
