Skip to content

Commit

Permalink
s/sort/sort! pt 2
Browse files Browse the repository at this point in the history
  • Loading branch information
markoa committed Jan 12, 2009
1 parent a4df1cb commit bc1a009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/pages_controller.rb
Expand Up @@ -98,7 +98,7 @@ def destroy

def sorted_by_date
@pages = Page.find(:all)
@pages.sort { |a, b| b.last_updated_at <=> a.last_updated_at }
@pages.sort! { |a, b| b.last_updated_at <=> a.last_updated_at }

respond_to do |format|
format.html { redirect_to :action => 'index' } #TODO: actually render smt
Expand Down

0 comments on commit bc1a009

Please sign in to comment.