mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-29 08:48:18 -05:00
It turns out Backbone fires the 'sort' event after adding new models to a collection. This allows us to reorder the views in the DOM in one batch rather than having to insert elements into specific offsets in the DOM, which breaks when 'add' events are out of order from the collection.