Skip to main content

sort numbers

Sort a list of numbers from smallest to largest.

Holly Conrad Smith avatar
Written by Holly Conrad Smith
Updated over 2 weeks ago

Sort a list of numbers from smallest to largest.

Use the number sorting to sort another list of the same length.

Inputs

Name

Abbreviation

Type

Access

Description

List

L

Number

List

The list of numbers to sort

Parallel

P

Any

List

The parallel list to sort

Outputs

Name

Abbreviation

Type

Access

Description

List

L

Number

List

The sorted list of numbers

Parallel

P

Any

List

The sorted parallel list

How-to

Basic (no parallel list)

  1. Feed in a list of numbers.

    The list must only contain numbers

    The list can be the result of another node, a parsed panel, or multiple nodes

  2. The resulting list orders the numbers from smallest to largest, respecting negation

With parallel List

Use the number sorting to sort another list of the same length.

  1. Sort a list of numbers

  2. Feed a list of the same length into the parallel list input.

    The parallel list with be reordered to match the numbered list’s original indices.

Original Lists:

Original Index

0

1

2

3

4

5

256

1

-237

12

13

250

owl

pigeon

hawk

eagle

sparrow

bluebird

Ordered Lists:

ordered index

0

1

2

3

4

5

Original Index

2

1

3

4

5

0

-237

1

12

13

250

256

hawk

pigeon

eagle

sparrow

bluebird

owl

Did this answer your question?