From 19068bc8b83e3ef75ac124345b00c3e4edddc57b Mon Sep 17 00:00:00 2001 From: Spen Date: Fri, 18 Oct 2013 16:13:42 +0800 Subject: [PATCH] add ntu_ga survey init sorting --- vendor/built_in_modules/survey/init.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/vendor/built_in_modules/survey/init.rb b/vendor/built_in_modules/survey/init.rb index 6f5a0f4d5..6b85128ab 100644 --- a/vendor/built_in_modules/survey/init.rb +++ b/vendor/built_in_modules/survey/init.rb @@ -20,6 +20,7 @@ module Faq widgets do default_widget do + sorting 'desc(:postdate)' enable ["typeA"] query 'Survey.any_of( {:postdate.lte => Time.now} )' # link_field :title, {:method => 'panel_survey_front_end_survey_path',:args=>:self}