On 10/04/2021 18:41, Juan Manuel Macías wrote:
Nicolas Goaziou writes:

Do you have a simple test case to reproduce the problem? Currently
sorting the following trivial lists causes no issue:

     - b
     - *a*

and

     - *b*
     - a

The current result is wrong:

- /a/
- /v/
- a
- b

I could reproduce such result but I am in doubt if it is a reason to merge the patch. I believe, the following behavior is almost expected

list.org:
- v
- /v/
- /a/
- a

LC_COLLATE=C.UTF-8 LC_ALL= LANGUAGE= \
  emacs -Q -L ~/src/org-mode/lisp/ -L ~/src/org-mode/contrib/lisp/ \
  list.org

(org-sort-list t ?a)

- /a/
- /v/
- a
- v

LC_COLLATE=en_US.UTF-8 LC_ALL= LANGUAGE= \
  emacs -Q -L ~/src/org-mode/lisp/ -L ~/src/org-mode/contrib/lisp/ \
  list.org

(org-sort-list t ?a)

- /a/
- a
- /v/
- v

Collation rules depend on language. The question is if emphasized variant should be sorted first.

P.S. The thread is broken. Some new messages do not have proper In-Reply-To header. Original question was not referenced in the message with patch as well: https://orgmode.org/list/87blbac0k0....@posteo.net/


Reply via email to