Skip to content

Commit

Permalink
order updates reverse cron #110
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielflorit committed Nov 23, 2014
1 parent d394116 commit 0d45f08
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/js/Updates.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ var Updates = React.createClass({
return _.contains(newUpdateNumbers, update.number);
})

// sort by closing date,
.sortBy(function(update) {
return -Moment(update.closed_at);
})

// and return <li /> tags for the rest of the updates.
.map(function(update) {
var moment = Moment(update.closed_at);
Expand Down

0 comments on commit 0d45f08

Please sign in to comment.