Homepage

GeoSortOrderEnum

Last edit: Nov 10, 2026

How results of a distance_sphere condition are ordered by their distance from center

enum GeoSortOrderEnum {
  ASC
  DESC
  NONE
}

Values

ASC

Closest first (default)

DESC

Farthest first

NONE

Not ordered by distance; ordering is controlled only by the sort argument of the query, if any

Questions?

We are always happy to help with any questions you may have.

contact us