Search Results for

    / fm / liveswitch / Sort

    Class: Sort

    fm.liveswitch.Sort

    Encapsulates useful sorting utilities.

    Table of contents

    Constructors

    • constructor

    Methods

    • getTypeString
    • quickSort

    Constructors

    constructor

    + new Sort(): Sort

    Returns: Sort

    Defined in: Generated/TypeScript/fm.liveswitch/Sort.ts:11

    Methods

    getTypeString

    ▸ getTypeString(): string

    Returns: string

    Defined in: Generated/TypeScript/fm.liveswitch/Sort.ts:9


    quickSort

    ▸ StaticquickSort<T>(array: T[], comparer: IFunction2<T, T, CompareResult>): void

    Sorts an array using the in-place quick-sort algorithm.

    Type parameters:

    Name
    T

    Parameters:

    Name Type Description
    array T[] The array of elements.
    comparer IFunction2<T, T, CompareResult> The function used to compare elements in the array - should return less than 0 if item 1 is less than item 2 (item 1 should appear before item 2), 0 if the items are equal, or more than 0 is item 1 is greater than item 2 (item 1 should appear after item 2).

    Returns: void

    Defined in: Generated/TypeScript/fm.liveswitch/Sort.ts:69

    In This Article
    Back to top Copyright © LiveSwitch Inc. All Rights Reserved. Doc build for LiveSwitch v1.14.6