Skip to content

Commit

Permalink
Should have put order on the screened urls results
Browse files Browse the repository at this point in the history
  • Loading branch information
nlalonde committed Nov 4, 2013
1 parent bd9b85f commit 9c91ddd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/admin/screened_urls_controller.rb
@@ -1,7 +1,7 @@
class Admin::ScreenedUrlsController < Admin::AdminController

def index
screened_urls = ScreenedUrl.select("domain, sum(match_count) as match_count, max(last_match_at) as last_match_at, min(created_at) as created_at").group(:domain).to_a
screened_urls = ScreenedUrl.select("domain, sum(match_count) as match_count, max(last_match_at) as last_match_at, min(created_at) as created_at").group(:domain).order('last_match_at DESC').to_a
render_serialized(screened_urls, GroupedScreenedUrlSerializer)
end

Expand Down

0 comments on commit 9c91ddd

Please sign in to comment.