Function Entry: VL-SORT
← Prev | ↑ Chapter | Next → | Index | Symbols
Function Entry: VL-SORT
Name
vl-sort
Class
Visual LISP list function
Syntax
(vl-sort lst comparison-function)
Arguments and Values
lst— list to sort.comparison-function— function designator of two arguments returning non-nil when the first argument should precede the second.
Description
Sorts a list according to the specified comparison relation.
Return Values
Returns a list containing the elements of lst in sorted order.
Notes
- Autodesk documents that duplicate elements may be eliminated from the result.
- The comparison function may be supplied as a symbol, quoted lambda expression, or
functionform.
Side Effects
None specified by Autodesk at the language level.
Availability
- AutoCAD 2026: documented (per Autodesk reference page).
- BricsCAD V26: presumed compatible (no contradicting page found).
- Status: AutoCAD documented; BricsCAD presumed-both pending Phase 4 verification.