Function: srecode-object-sort-list

srecode-object-sort-list is a byte-compiled function defined in table.el.gz.

Signature

(srecode-object-sort-list OBJECT SLOT PREDICATE)

Documentation

Sort the items in OBJECT's SLOT.

Use PREDICATE is the same as for the sort function.

Aliases

object-sort-list (obsolete since 29.1)

Source Code

;; Defined in /usr/src/emacs/lisp/cedet/srecode/table.el.gz
(defun srecode-object-sort-list (object slot predicate)
  "Sort the items in OBJECT's SLOT.
Use PREDICATE is the same as for the `sort' function."
  (when (slot-boundp object slot)
    (when (listp (eieio-oref object slot))
      (eieio-oset object slot (sort (eieio-oref object slot) predicate)))))