Field-Map Scripting

4.1.2.13 SortNumericSequence

SortNumericSequence function


Prototype:

function SortNumericSequence(const Data: string; const FieldDelimiter: char; const Descending: boolean): string;

Description:

Sorts a numeric sequence passed as a string containing textual representation of numbers separated by special character defined by parameter FieldDelimiter. A sequence can be sorted in ascending or descending order. Function returns sorted sequence in form of string. Use functions GetFieldCountFromString and GetFieldFromString for further processing of this output.


Syntax:

SortNumericSequence(Data,FieldDelimiter,Descending);


Part

Description


Data

A text-formatted numeric sequence


FieldDelimiter

A character used as a field delimiter in the input string


Descending

Indicates whether to sort in ascending or descending order

Return value:

Text-formatted sorted sequence.



See also:

Format; LZero; Delete; Trim; TrimLeft; TrimRight; SameText; StringReplace; DeFormat1-10; GetFieldCountFromString;GetFieldFromString; IndexOfField; SortNumericSequence