X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=Notify.php;h=f524ff2ff59d4d306d2fd31a315ce495170b4068;hb=7b79e92134914c1600b3fd4e9c07c726643b801b;hp=5ed6a7b562a531aaac6f516b15b3872cfefe233b;hpb=b713c3f219860e2b8045af866819810cadc35391;p=Pman.Core diff --git a/Notify.php b/Notify.php index 5ed6a7b5..f524ff2f 100644 --- a/Notify.php +++ b/Notify.php @@ -225,6 +225,7 @@ class Pman_Core_Notify extends Pman if (!$this->force) { $w->whereAdd('act_when < NOW()'); // eg.. not if future.. } + $w->orderBy('act_when ASC'); // oldest first. $total = min($w->count(), $opts['limit']);