From 6ecf847f803d5f69e22f5b36121d6a4d18eb5b02 Mon Sep 17 00:00:00 2001 From: Eliot Horowitz Date: Wed, 10 Mar 2010 22:31:10 -0500 Subject: allow re-sorting for geo searches SERVER-730 --- db/index.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'db/index.cpp') diff --git a/db/index.cpp b/db/index.cpp index 777a9b0f951..c89bf9cecf6 100644 --- a/db/index.cpp +++ b/db/index.cpp @@ -435,4 +435,9 @@ namespace mongo { IndexSuitability IndexType::suitability( const BSONObj& query , const BSONObj& order ) const { return _spec->_suitability( query , order ); } + + bool IndexType::scanAndOrderRequired( const BSONObj& query , const BSONObj& order ) const { + return ! order.isEmpty(); + } + } -- cgit v1.2.1