← All docs
natsort() — internals
Compiler internals for natsort(): lowering path, type checks, and runtime helpers.
natsort() — internals
Where it lives
- Signature:
src/builtins/array/natsort.rs - Lowering:
src/codegen/lower_inst/builtins/arrays.rs:1109 (lower_natsort) - Function symbol:
lower_natsort()
Lowering notes
- Lowers
natsort()for indexed integer arrays through the natural-sort runtime wrapper.
Runtime helpers
The following runtime helpers are referenced:
__rt_natcasesort__rt_natsort
Signature summary
function natsort(array $array): bool
What the type checker enforces
- Arity: takes exactly 1 argument.
- By-reference parameters:
$array.
Eval interpreter (magician)
- Declaration:
crates/elephc-magician/src/interpreter/builtins/array/natsort.rs(eval_builtin!) - Dispatch hooks:
values - By-reference parameters:
$array.