function hosting_task_handler_sort_hosting_task_default::query in Hosting 6.2
File
- task/
hosting_task_handler_sort_hosting_task_default.inc, line 7
Class
- hosting_task_handler_sort_hosting_task_default
- Handle the default hosting task sort order.
Code
function query() {
$this->query
->add_orderby(NULL, 'FIELD(task_status,"0")', 'DESC', '_' . $this->field);
$this->query
->add_orderby(NULL, 'FIELD(task_status,"-1")', 'DESC', '_' . $this->field);
}