Aha... I understand now why assigning `comparator` inside  `setComparator` each time might be necessary. If the developer assigned `comparator`, since that's the normal API of a Backbone Collection, then calling `setComparator` later might not work as expected.

Maybe this should stay as a separate function, and `setComparator` assigns `this.comparator = comparator;` like you had it before.