From 9c91ddd854f4dbbacc1265bc53bb455c23d16efd Mon Sep 17 00:00:00 2001 From: Neil Lalonde Date: Mon, 4 Nov 2013 16:31:31 -0500 Subject: [PATCH] Should have put order on the screened urls results --- app/controllers/admin/screened_urls_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/screened_urls_controller.rb b/app/controllers/admin/screened_urls_controller.rb index 0bb114af9f..cc2e2d9d27 100644 --- a/app/controllers/admin/screened_urls_controller.rb +++ b/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