106
Backbone.js collection.comparator()
In Backbone.js, the comparator property is used to maintain the collection in the sorted order. By default, there is no comparator for a collection.
Syntax:
Let’s take an example.
See this example: