I am new to PowerApps. My requirement is to sort the retrieved records in ascending order based on the current location of the user.
Let say, the user is currently at the location A1 (Latitude=Lat1, Longitude=Lat2).
Now, my requirement is retrieve the list of restaurants (custom entity) in Dynamics CRM with the fields say Address/Latitude-Longutude details.
On load of PowerApps, I need to sort the list of retrieved restaurants in ascending order starting from the nearest restaurant from location A1 comes first and the farest restaurant comes last.
Please help me achieve the requirement as above.
Any help will really be appreciated.
Personally I think this cannot be achieved. This is because that the earch is a sphere. If it's two-dimensional, then it might be possible to sort with something like:
A1 (Latitude=Lat1, Longitude=Lat2)
A2 (Latitude=Lat3, Longitude=Lat4)
You could consider to add an idea in PowerApps idea forum here:
Fill out a quick form to claim your user group badge now!
Find out where you can attend!
Features releasing from October 2019 through March 2020
The largest Power BI, Power Platform, and Data conference in New Zealand