[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Inconsistent org-sort numeric
From: |
Ihor Radchenko |
Subject: |
Re: Inconsistent org-sort numeric |
Date: |
Mon, 09 Sep 2024 18:17:05 +0000 |
Kepa <gnu.cognition199@slmails.com> writes:
> It seems inconsistent, org-sort numeric.
> If org-sort numeric is applied to each of these one level headlines, the
> order is different in both (tested with emacs -q):
>
>
> * Inconsistent org-sort. M-x org-sort numeric
> ** !Cuatro
> ** ~Cinco
> ** Tres
> ...
>
> ** Tres
> ** !Cuatro
> ** ~Cinco
Your example is ambiguous.
How exactly do you expect _numeric_ sort to order non-numbers?
As an implementation detail, org-sort treats all the non-numbers as
0-es. It also does not re-order items with the same sorting key.
--
Ihor Radchenko // yantar92,
Org mode contributor,
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>