Function: cl-stable-sort
cl-stable-sort is an autoloaded and byte-compiled function defined in
cl-seq.el.gz.
Signature
(cl-stable-sort SEQ PREDICATE [KEYWORD VALUE]...)
Documentation
Sort the argument SEQ stably according to PREDICATE.
This is a destructive function; it reuses the storage of SEQ if possible.
Keywords supported: :key
Aliases
stable-sort (obsolete since 27.1)
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/cl-seq.el.gz
;;;###autoload
(defun cl-stable-sort (seq pred &rest cl-keys)
"Sort the argument SEQ stably according to PREDICATE.
This is a destructive function; it reuses the storage of SEQ if possible.
\nKeywords supported: :key
\n(fn SEQ PREDICATE [KEYWORD VALUE]...)"
;; It's safe to ignore the return value when used on arrays,
;; but most calls pass lists.
(declare (important-return-value t))
(apply #'cl-sort seq pred cl-keys))