v2026.9.6
All Bundles
Bundle Core runtime library providing primitive types (Bool, Byte, Char, Int, Float, String), base collections, and system utilities. Every Objeck program links against this bundle automatically via lang.obl.

ArraySort

Sorts primitive arrays in place 'Int->Sort(v)' and its Byte, Char and Float counterparts return a sorted copy; these sort the array they are handed. Both share this implementation.

Example

a := [5, 3, 1, 4];
ArraySort->Sort(a);
a[0]->PrintLine();  # 1

Operations

Sort # native

Sorts a Byte array in place

function : native : Sort(array:Byte[]) ~ Nil

Parameters

NameTypeDescription
arrayBytearray to sort

Sort # native

Sorts part of a Byte array in place

function : native : Sort(array:Byte[], low:Int, high:Int) ~ Nil

Parameters

NameTypeDescription
arrayBytearray to sort
lowIntfirst index to sort
highIntlast index to sort

Sort # native

Sorts a Char array in place

function : native : Sort(array:Char[]) ~ Nil

Parameters

NameTypeDescription
arrayChararray to sort

Sort # native

Sorts part of a Char array in place

function : native : Sort(array:Char[], low:Int, high:Int) ~ Nil

Parameters

NameTypeDescription
arrayChararray to sort
lowIntfirst index to sort
highIntlast index to sort

Sort # native

Sorts a Int array in place

function : native : Sort(array:Int[]) ~ Nil

Parameters

NameTypeDescription
arrayIntarray to sort

Sort # native

Sorts part of a Int array in place

function : native : Sort(array:Int[], low:Int, high:Int) ~ Nil

Parameters

NameTypeDescription
arrayIntarray to sort
lowIntfirst index to sort
highIntlast index to sort

Sort # native

Sorts a Float array in place

function : native : Sort(array:Float[]) ~ Nil

Parameters

NameTypeDescription
arrayFloatarray to sort

Sort # native

Sorts part of a Float array in place

function : native : Sort(array:Float[], low:Int, high:Int) ~ Nil

Parameters

NameTypeDescription
arrayFloatarray to sort
lowIntfirst index to sort
highIntlast index to sort