diff --git a/include/class.queue.php b/include/class.queue.php index 3754c1b87ef89812f810400b8abce4e694c3485f..c51aa79a69d51246969a4fde16716e9177e494ac 100644 --- a/include/class.queue.php +++ b/include/class.queue.php @@ -2099,6 +2099,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'),