diff options
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r-- | app/controllers/general_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb index 4eb671af6..16f34f1b8 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.13 2008-03-31 19:15:30 francis Exp $ +# $Id: general_controller.rb,v 1.14 2008-03-31 23:19:16 francis Exp $ class GeneralController < ApplicationController @@ -61,6 +61,8 @@ class GeneralController < ApplicationController order = nil elsif @sortby == 'newest' order = 'created_at desc' + elsif @sortby == 'described' + order = 'last_described_at desc' # use this for RSS else raise "Unknown sort order " + @sortby end |