Skip to content

Commit 9c91ddd

Browse files
committed
Should have put order on the screened urls results
1 parent bd9b85f commit 9c91ddd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/admin/screened_urls_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
class Admin::ScreenedUrlsController < Admin::AdminController
22

33
def index
4-
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
4+
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
55
render_serialized(screened_urls, GroupedScreenedUrlSerializer)
66
end
77

0 commit comments

Comments
 (0)