Home » Backbone.js collection.comparator()

Backbone.js collection.comparator()

by Online Tutorials Library

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:

You may also like