Function CharSort() Foundation

Sorts characters or substrings within a string.

Syntax
CharSort( <cString>               , ;
          [<nSubstrLen>]          , ;  // Default: 1
          [<nCompareLen>]         , ;  // Default: 1
          [<nIgnoreCharsFromLeft>], ;  // Default: 0
          [<nSubstringOffset>]    , ;  // Default: 0
          [<nSortLen>]            , ;  // Default: Len(cString)
          [<lDescending>]           ;  // Default: .F.
        ) --> cResultString
Parameters
<nSubstrLen>
Numeric value defines the length of one substring to be sorted.
<nCompareLen>
Numeric value defines the number of the first characters of a substring to be considered for the sort.
<nIgnoreCharsFromLeft>
Number of characters at the beginning of <cString> to be ignored for the sort.
<nSubstringOffset>
Number of characters to be ignored at the beginning of the substring.
<nSortLen>
Number of characters of <cString> to be sorted ( Defaults to Len(cString) )
<lDescending>
Descending sort if set .T.
Return

Returns the processed string or a null string ("") in case of an error.

Description

Sorts characters or substrings within a string.

Feedback

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.