Lines Matching refs:comparator
766 if (options.comparator !== void 0) this.comparator = options.comparator;
865 var sortable = this.comparator && at == null && options.sort !== false;
866 var sortAttr = _.isString(this.comparator) ? this.comparator : null;
1032 var comparator = this.comparator;
1033 if (!comparator) throw new Error('Cannot sort a set without a comparator');
1036 var length = comparator.length;
1037 if (_.isFunction(comparator)) comparator = _.bind(comparator, this);
1040 if (length === 1 || _.isString(comparator)) {
1041 this.models = this.sortBy(comparator);
1043 this.models.sort(comparator);
1100 comparator: this.comparator