Skip to content

Commit

Permalink
Ordering feed_items by date descending on wires page.
Browse files Browse the repository at this point in the history
  • Loading branch information
futurechimp committed Jun 11, 2011
1 parent 81c3435 commit fdd318e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/wires.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
get :show, :with => :id do
@wire = Wire.find(params[:id])
@wires = Wire.all.order_by([:name, :asc])
@feed_items = @wire.feed_items.limit(60)
@feed_items = @wire.feed_items.limit(60).order_by([:date_published, :desc])
render 'home/index'
end

Expand Down

0 comments on commit fdd318e

Please sign in to comment.