From d43ce3dafe5f2650ec6dd400234eac759942cb70 Mon Sep 17 00:00:00 2001 From: Peter Rotich <peter@enhancesoft.com> Date: Wed, 9 May 2018 16:51:21 +0000 Subject: [PATCH] COALESCE: Force nulls to the bottom --- include/class.queue.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/class.queue.php b/include/class.queue.php index 950bff75c..96fc37c6a 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'), -- GitLab