Uwe Brauer via "General discussions about Org-mode."
<emacs-orgmode@gnu.org> writes:

> I am not sure this is a feature or a bug. 
> Consider the following 
>
> --8<---------------cut here---------------start------------->8---
> * Test 1
> ** <2025-02-08 09:46> First
> ** <2025-02-08 09:51> All
> --8<---------------cut here---------------end--------------->8---
>
> If I run `org-sort` the header `*Test 1` than I can sort the lines only
> with respect to the timestamps but *not* alphabetically.

You can sort alphabetically. But timestamp is considered a part of the headline.
If you need something custom, provide custom key/comparison function for
`org-sort-entries'.

> * Test 2
> ** First  <2025-02-08 09:46> 
> ** All <2025-02-08 09:51> 
> --8<---------------cut here---------------end--------------->8---
>
>
> If I do the same for `* Test 2`
> then I can sort either alphabetically or with the respect to the
> timestamps.

This is also expected. See `org-sort-entries' docstring.

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to