<@U04N0R54JE7>: How do I sort geolocations by dist...
# contributions
u
@Manish Rai Jain: How do I sort geolocations by distance? Struct GPT: You can sort geolocations by distance using the location parameter in the "sort_by" field. To achieve this, your query would look something like this:
sort_by: "name:asc,location(48.853, 2.344):asc"
. This will cause geosorting to kick in when the name is a tie for a particular set of records and the geo sort will help break the tie. It's important to note that weighted results based on name and distance are not possible, as weights are used for tie-breaking and setting relative importance, but an aggregate score is not computed based on them.