fix sorting for default widget

This commit is contained in:
Matt K. Fu committed 2013-08-30 16:52:46 +08:00
1 parent 23516277f3
commit 1ccfd6e48c
1 file changed
+1 -1
+1 -1
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