function views_handler_sort_last_changed in Views (for Drupal 7) 5
1 string reference to 'views_handler_sort_last_changed'
- comment_views_tables in modules/
views_comment.inc - This include file implements views functionality on behalf of comment.module
File
- modules/
views_comment.inc, line 202
Code
function views_handler_sort_last_changed($action, &$query, $sortinfo, $sort) {
$query
->ensure_table('node_comment_statistics');
$query->orderby[] = 'GREATEST(node.changed, node_comment_statistics.last_comment_timestamp) ' . $sort['sortorder'];
}