Hi All, I think there is a bug in org-sort or org-sort-list function.
If you call org-sort (C-c ^) on list items, this function will call org-sort-list. However, org-sort calls org-sort-list with only one argument, i.e., the with-case (see the code below) #+BEGIN_SRC emacs-lisp ((org-at-item-p) (org-call-with-arg 'org-sort-list with-case)) #+END_SRC emacs-lisp The problem is that if you choose ?f (sorting with custom key function), then org-sort-list expects another argument, the compare-func, which is not passed to it. IMHO, there are two ways to solve this 1. Ask for the compare-func in org-sort-list, as it does for the getkey-func. A default value could be provided for compare-func, e.g., string<, <, etc. Or 2. Restrict the return type to a string (or integer) so that we could fix the compare-func -- gongzhitaao / 半緣脩道半緣君