documentcloud/backbone — Issue #1055: Error in documentation?
Author: honi
Created: 2012-02-28 01:33:15+00:00
State: open

Maybe I'm reading it wrong or something, english is not my first language... In that case sorry for the issue.

http://documentcloud.github.com/backbone/#Collection-comparator

> Comparator function can be defined as either a sortBy (pass a function that takes a single argument), or as a sort (pass a comparator function that expects two arguments).

> "sort" comparator functions take a model and return a numeric or string value by which the model should be ordered relative to others. "sortBy" comparator functions take two models ...

I think in the second paragraph sort is actually sortBy and sortBy is sort.