Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5751

sort query results by distance to a point

    • Query Integration

      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:
            backlog-query-integration [DO NOT USE] Backlog - Query Integration
            Reporter:
            matulef Kevin Matulef
            Votes:
            4 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: