branch: externals-release/org
commit 1b675f0ca84d637a3780cf3590308116e232fcfd
Author: TEC <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    org-agenda: Make timestamp ordering match docs
    
    * lisp/org-agenda.el: When `org-agenda-sort-notime-is-late' is non-nil,
    an absent timestamp is now (correctly) treated as maximal.
    
    Bug reported by: Charles Tam <[email protected]> in
    
https://list.orgmode.org/caku+9yvnpshg4hvtpfa2l2tp6ybdjj38teyr8osdmcg0zeo...@mail.gmail.com
---
 lisp/org-agenda.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 94aea1b0a3..651c8e908a 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -7288,7 +7288,7 @@ When TYPE is \"scheduled\", \"deadline\", \"timestamp\" or
 \"timestamp_ia\", compare within each of these type.  When TYPE
 is the empty string, compare all timestamps without respect of
 their type."
-  (let* ((def (and (not org-agenda-sort-notime-is-late) -1))
+  (let* ((def (if org-agenda-sort-notime-is-late 99999999 -1))
         (ta (or (and (string-match type (or (get-text-property 1 'type a) ""))
                      (get-text-property 1 'ts-date a))
                 def))

Reply via email to