Sorting Locations by their distance using Knowledge Graph Live API - Entities: Geo Search

Base on this documentation (Entities | Hitchhikers). How to sort the result of it by its distance from the user to its location? From the nearest location to the farthest. Below is my API request.

https://liveapi.yext.com/v2/accounts/me/entities/geosearch?api_key=${apiKey}&v=${currentDate}&location=38.7519381,-77.0925955&radius=500&limit=1

Considering that is my location with a 500 miles radius, I would like the results to be sorted also from the nearest to farthest. Please help

Hi Jay,

By default, the entities are sorted based on location proximity which is the behavior you are looking for. Are you seeing something different and if so, could you provide a specific example? The link you added to the post is showing an error.