]> git.eshelyaron.com Git - emacs.git/commitdiff
; Another fix of last change.
authorEli Zaretskii <eliz@gnu.org>
Fri, 2 Feb 2024 15:46:19 +0000 (17:46 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 4 Feb 2024 11:04:24 +0000 (12:04 +0100)
(cherry picked from commit 02bdb1e4c50153a1754b251538d705d7d81668f8)

doc/lispref/sequences.texi

index 9407b5f63428cc1274e3f7b93255776156a58416..068b69e9ef863a2aac0693f4d90ce6965b1033ed 100644 (file)
@@ -449,13 +449,14 @@ or vector element exactly once.
 @cindex decorate-sort-undecorate
 @cindex Schwartzian transform
 @defun sort-on sequence predicate accessor
-This function stably sorts the list or vector @var{sequence}, comparing
-the sort keys of the elements using @var{predicate}.  The comparison
-function @var{predicate} accepts two arguments, the sort keys to
-compare, and should return non-@code{nil} if the element corresponding
-to the first key should sort before the element corresponding to the
-second key.  The function computes a sort key of each element by calling
-the @var{accessor} function on that element; it does so exactly once for
+This function stably sorts @var{sequence}, which can be a list, a
+vector, a bool-vector, or a string.  It sorts by comparing the sort
+keys of the elements using @var{predicate}.  The comparison function
+@var{predicate} accepts two arguments, the sort keys to compare, and
+should return non-@code{nil} if the element corresponding to the first
+key should sort before the element corresponding to the second key.  The
+function computes a sort key of each element by calling the
+@var{accessor} function on that element; it does so exactly once for
 each element of @var{sequence}.  The @var{accessor} function is called
 with a single argument, an element of @var{sequence}.