26.12.2012 Views

ICAM Virtual Machine V19 - Kxcad.net

ICAM Virtual Machine V19 - Kxcad.net

ICAM Virtual Machine V19 - Kxcad.net

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>ICAM</strong> <strong>Virtual</strong> <strong>Machine</strong> ® <strong>Virtual</strong> <strong>Machine</strong> Reference, Model Customization<br />

Simulation Macro Functions, Other Functions<br />

or -1 if the sort failed. The $ERRNO system variable will be set to a non-zero value if the sort<br />

failed.<br />

result=$FSORT(sequence [,fields [,field,order [,…]] ])<br />

Returns: Sequence<br />

When sorting a sequence, the input sequence is specified as the first parameter of the $FSORT<br />

function and the sorted result is returned as a sequence. If all elements of the sequence are the<br />

same type (e.g., all numbers or all strings), then $FSORT can be called with just the input<br />

sequence to sort the elements in increasing order. If the sequence represents a table (e.g., alternating<br />

pairs of number and string elements), then the fields parameter must be specified to tell<br />

the sort function the number of fields (or columns) that make up each record (or row) to be<br />

sorted in the sequence. The default increasing order of sorting can be changed by specifying a<br />

“field,order” sort key parameter, where field identifies a field number and order is one of the<br />

keywords INCR or DECR. Additional sort keys can be specified to sort records with identical<br />

sort key fields. If all sort keys are the same, then the original record order is maintained. If the<br />

sort fails, a null sequence (i.e., $NULL) will be returned and the $ERRNO system variable will<br />

be set to a non-zero value.<br />

204 <strong>ICAM</strong> Technologies Corporation – Proprietary

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!