+ # If the currently requested orders specifically match the table_name for the current klass, apply the order
+ request_order = request_orders && request_orders.find{ |r| r =~ /^#{klass.table_name}\./i }
+ if request_order
+ @objects = @objects.order(request_order)
+ else
+ # default to created_at desc, ignoring any currently requested ordering because it doesn't apply to this klass
+ @objects = @objects.order("#{klass.table_name}.created_at desc")
+ end
+