diff --git a/include/class.queue.php b/include/class.queue.php index 950bff75c199abf8544a45df95f6ce2402d076ab..96fc37c6a6c771edff0cbd8215d5a68665e7e2c7 100644 --- a/include/class.queue.php +++ b/include/class.queue.php @@ -2094,6 +2094,8 @@ extends VerySimpleModel { list($path, $field) = $key; $fields[] = new SqlField($path); } + // Force nulls to the buttom. + $fields[] = 'zzz'; $alias = sprintf('C%d', $this->getId()); $expr = call_user_func_array(array('SqlFunction', 'COALESCE'),