Sorted Insertion Index

data · N084 · starter-package 7.0.1

Find the first index where Value can be inserted into ascending numeric Items. Equal values go after the new value. An empty list returns 0.

Example

Connected values

{"items":[2,4,4,6],"value":4}

Result

{"index":1}

Connector data types

DirectionConnectorTypeRequired
Inputitems — Itemslistyes
Inputvalue — Valuenumberyes
Outputindex — Indexnumberon success

Errors and recovery

Sort Items numerically in ascending order before connecting it. Supply Value as a Number.