C# Class LitDev.LDSort

ファイルを表示 Open project: litdev1/LitDev

Public Properties

Property Type Description
bCaseSensitive bool

Public Methods

Method Description
ByIndex ( Primitive array ) : Primitive

Sort an array of any dimension by the index (key).

ByValue ( Primitive array ) : Primitive

Sort a 1D array by the value (the indices are re-numbered from 1).

ByValueWithIndex ( Primitive array ) : Primitive

Sort a 1D array by the value (the indices are unchanged, but sorted).

Private Methods

Method Description
sort ( Primitive array ) : List

Method Details

ByIndex() public static method

Sort an array of any dimension by the index (key).
public static ByIndex ( Primitive array ) : Primitive
array Primitive /// The array to sort. ///
return Primitive

ByValue() public static method

Sort a 1D array by the value (the indices are re-numbered from 1).
public static ByValue ( Primitive array ) : Primitive
array Primitive /// The array to sort. ///
return Primitive

ByValueWithIndex() public static method

Sort a 1D array by the value (the indices are unchanged, but sorted).
public static ByValueWithIndex ( Primitive array ) : Primitive
array Primitive /// The array to sort. ///
return Primitive

Property Details

bCaseSensitive public_oe static_oe property

public static bool bCaseSensitive
return bool