Commit a847888f authored by merlinofchaos's avatar merlinofchaos

Sort by nid still broken with DISTINCT

parent 6738103a
......@@ -755,7 +755,7 @@ function views_handler_sort_random($action, &$query, $sortinfo, $sort) {
}
function views_node_sort_handler_nid($action, &$query, $sortinfo, $sort) {
$query->add_orderby(NULL, 'nid', $sort['sortorder'], 'nid');
$query->orderby[] = "{node}.nid $sort[sortorder]";
}
function views_handler_arg_node_feed($op, &$query, $argtype, $arg = '') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment