Skip to content

Commit

Permalink
Reverse items before adding to collection.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshnesbitt committed Mar 29, 2012
1 parent 51dcf04 commit c37c0bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion javascripts/application.js
Expand Up @@ -42,7 +42,7 @@ window.App = function(settings){
var ItemCollection = function(collection){
this.template = Handlebars.compile($('#items-template').html());

this.items = _.map(collection, function(obj){
this.items = _.map(collection.reverse(), function(obj){
return new Item(obj);
}, this);

Expand Down

0 comments on commit c37c0bc

Please sign in to comment.