fix ordering of notes

This commit is contained in:
albert
2013-02-20 22:40:33 -05:00
parent efaae104fb
commit 13ebfeacb6
2 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ module PostSets
# don't call super because we don't want to repeat these queries
@tag_array = Tag.scan_query(params[:tags])
@page = params[:page] || 1
@posts = ::Post.tag_match(tag_string).has_notes.paginate(page)
@posts = ::Post.tag_match(tag_string).has_notes.paginate(page).reorder("last_noted_at desc")
end
end
end