package core:sort

⌘K
Ctrl+K
or
/

    Types

    Interface ¶

    Interface :: struct {
    	len:        proc(it: Interface) -> int,
    	less:       proc(it: Interface, i, j: int) -> bool,
    	swap:       proc(it: Interface, i, j: int),
    	collection: rawptr,
    }
    Related Procedures With Parameters
    Related Procedures With Returns

    Constants

    This section is empty.

    Variables

    This section is empty.

    Procedures

    ORD ¶

    ORD :: intrinsics.type_is_ordered

    bubble_sort ¶

    bubble_sort :: proc(array: $T/[]$T) {…}

    bubble_sort_proc ¶

    bubble_sort_proc :: proc(array: $T/[]$T, f: proc($T, $T) -> int) {…}

    compare_bools ¶

    compare_bools :: proc(a, b: bool) -> int {…}

    compare_f32s ¶

    compare_f32s :: proc(a, b: f32) -> int {…}

    compare_f64s ¶

    compare_f64s :: proc(a, b: f64) -> int {…}

    compare_i16s ¶

    compare_i16s :: proc(a, b: i16) -> int {…}

    compare_i32s ¶

    compare_i32s :: proc(a, b: i32) -> int {…}

    compare_i64s ¶

    compare_i64s :: proc(a, b: i64) -> int {…}

    compare_i8s ¶

    compare_i8s :: proc(a, b: i8) -> int {…}

    compare_ints ¶

    compare_ints :: proc(a, b: int) -> int {…}

    compare_strings ¶

    compare_strings :: proc(a, b: string) -> int {…}

    compare_u16s ¶

    compare_u16s :: proc(a, b: u16) -> int {…}

    compare_u32s ¶

    compare_u32s :: proc(a, b: u32) -> int {…}

    compare_u64s ¶

    compare_u64s :: proc(a, b: u64) -> int {…}

    compare_u8s ¶

    compare_u8s :: proc(a, b: u8) -> int {…}

    compare_uints ¶

    compare_uints :: proc(a, b: uint) -> int {…}

    heap_sort ¶

    heap_sort :: proc(array: $T/[]$T) {…}

    heap_sort_proc ¶

    heap_sort_proc :: proc(array: $T/[]$T, f: proc($T, $T) -> int) {…}

    is_sorted ¶

    is_sorted :: proc(it: Interface) -> bool {…}

    merge_sort ¶

    merge_sort :: proc(array: $T/[]$T) {…}

    merge_sort_proc ¶

    merge_sort_proc :: proc(array: $T/[]$T, f: proc($T, $T) -> int) {…}

    quick_sort ¶

    quick_sort :: proc(array: $T/[]$T) {…}

    quick_sort_proc ¶

    quick_sort_proc :: proc(array: $T/[]$T, f: proc($T, $T) -> int) {…}

    reverse_interface ¶

    reverse_interface :: proc(it: ^Interface) -> Interface {…}

    reverse_slice ¶

    reverse_slice :: proc(array: $T/[]$T) {…}

    reverse_sort ¶

    reverse_sort :: proc(it: Interface) {…}

    rotate ¶

    rotate :: proc(it: Interface, a, m, b: int) {…}

    slice ¶

    slice :: proc(array: $T/[]$T) {…}

    slice_interface ¶

    slice_interface :: proc(s: ^$T/[]$T) -> Interface {…}

    sort ¶

    sort :: proc(it: Interface) {…}
     

    sort sorts an Interface This sort is not guaranteed to be stable

    swap_range ¶

    swap_range :: proc(it: Interface, a, b, n: int) {…}

    Procedure Groups

    This section is empty.

    Source Files

    Generation Information

    Generated with odin version dev-2024-12 (vendor "odin") Windows_amd64 @ 2024-12-17 21:11:01.222956500 +0000 UTC