[ 
https://issues.apache.org/jira/browse/USERGRID-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14367541#comment-14367541
 ] 

George Reyes commented on USERGRID-460:
---------------------------------------

I added a test and a fix so that geo location queries are sorted by distance. 
That said it seems to have had a negative effect on a single test that tests a 
bunch of points created in the exact same location. It seems like the sort 
doesn't know how to order them since they are all on the exact same spot and 
jumbles them up. I'm not sure if that is a  expected or needed use case. 
[~jeffreyawest] What do you think?

> Geospatial/Geolocation query results are not sorted by distance
> ---------------------------------------------------------------
>
>                 Key: USERGRID-460
>                 URL: https://issues.apache.org/jira/browse/USERGRID-460
>             Project: Usergrid
>          Issue Type: Bug
>          Components: Stack
>            Reporter: Jeffrey 
>            Assignee: George Reyes
>
> Geospatial ('within') query results are not sorted by distance.  We should 
> sort by distance ascending by default.  This is now MongoDB handles the $near 
> queries.
> Please add a test to confirm sorting is done correctly.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to