Function Entry: VL-SORT-I

← Prev | ↑ Chapter | Next → | Index | Symbols

Function Entry: VL-SORT-I

Name

vl-sort-i

Class

Visual LISP list function

Syntax

(vl-sort-i lst comparison-function)

Arguments and Values

  • lst — list to sort indirectly.
  • comparison-function — function designator of two arguments returning non-nil when the first argument should precede the second.

Description

Sorts a list indirectly and returns the indices of the original elements in sorted order.

Return Values

Returns a list of zero-based indices into lst.

Notes

  • Autodesk documents that duplicate elements are retained in the result.
  • This contrasts with vl-sort, which may eliminate duplicates.

Side Effects

None.

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.