[SERVER-5751] sort query results by distance to a point Created: 02/May/12  Updated: 28/Dec/23

Status: Backlog
Project: Core Server
Component/s: Geo, Index Maintenance, Querying
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: Kevin Matulef Assignee: Backlog - Query Integration
Resolution: Unresolved Votes: 4
Labels: qi-geo
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-153 javascript sort helper for custom sor... Backlog
Assigned Teams:
Query Integration
Participants:

 Description   

Would be nice to be able to sort the results of a geo query according to their distance to another point. Syntax would be something like:
db.foo.find(...).sort({loc : {$near : [lat,long]}})


Generated at Thu Feb 08 03:09:46 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.