aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/general_controller.rb
diff options
context:
space:
mode:
authorfrancis <francis>2009-09-04 13:44:39 +0000
committerfrancis <francis>2009-09-04 13:44:39 +0000
commitcec2bc5226d10d3effc85b52c2d00072218613f3 (patch)
tree6fa20e112dbbcc8a41414433cbf1b0fd7d09eaa4 /app/controllers/general_controller.rb
parent1c2b25bcf5a9f6169063fb05c8726e8aee9142e1 (diff)
Better order
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r--app/controllers/general_controller.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb
index a62f568a7..6d2151861 100644
--- a/app/controllers/general_controller.rb
+++ b/app/controllers/general_controller.rb
@@ -5,7 +5,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: general_controller.rb,v 1.52 2009-09-04 13:32:43 francis Exp $
+# $Id: general_controller.rb,v 1.53 2009-09-04 13:44:39 francis Exp $
class GeneralController < ApplicationController
@@ -15,7 +15,7 @@ class GeneralController < ApplicationController
#@popular_bodies = PublicBody.find(:all, :select => "*, (select count(*) from info_requests where info_requests.public_body_id = public_bodies.id) as c", :order => "c desc", :limit => 32)
# Just hardcode some popular authorities for now
- # ('tgq' is for debugging on Francis's development environment)
+ # ('tgq', 'atbra' is for debugging on Francis's development environment)
@popular_bodies = PublicBody.find(:all, :conditions => ["url_name in (
'bbc',
'dwp',
@@ -25,8 +25,8 @@ class GeneralController < ApplicationController
'mod',
'kent_county_council',
'wirral_borough_council'
- /* ,'tgq' */
- )"])
+ /* , 'tgq', 'atbra' */
+ )"]).sort_by { |pb| pb.url_name }.reverse # just an order that looks better
# Get some successful requests #
begin