code: function () {                                                                           // 274
      var self = this;                                                                                          // 275
                                                                                                                // 276
      if (self._sortFunction)                                                                                   // 277
        return self._sortFunction;                                                                              // 278
                                                                                                                // 279
      // If we're only sorting on geoquery distance and no specs, just say                                      // 280
      // everything is equal.                                                                                   // 281
      if (!self._sortSpecParts.length) {                                                                        // 282
        return function (doc1, doc2) {                                                                          // 283
          return 0;                                                                                             // 284
        };                                                                                                      // 285
      }                                                                                                         // 286
                                                                                                                // 287
      return function (doc1, doc2) {                                                                            // 288
        var key1 = self._getMinKeyFromDoc(doc1);                                                                // 289
        var key2 = self._getMinKeyFromDoc(doc2);                                                                // 290
        return self._compareKeys(key1, key2);                                                                   // 291
      };                                                                                                        // 292
    }
docs: 270 271 Returns a comparator that represents the sort specification (but not                                     // 272 including a possible geoquery distance tie-breaker).                                                     // 273