sort query results by distance to a point

XMLWordPrintableJSON

    • Query Integration
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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]}})

            Assignee:
            [DO NOT USE] Backlog - Query Integration
            Reporter:
            Kevin Matulef (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: