fix sorting for default widget

This commit is contained in:
Matt K. Fu 2013-08-30 16:52:46 +08:00
parent 23516277f3
commit 1ccfd6e48c
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ class DefaultWidgetController< OrbitWidgetController
else #no tag has cate
result = eval("#{@ori_query}.where(:#{get_category_field_name}.in=>params['category_id'])")
end
result.available_for_lang(I18n.locale).can_display
result.available_for_lang(I18n.locale).can_display.desc(:created_at)
end
def search_result