11.04.2013 Views

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

UniBasic Commands Reference - Rocket Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SORT<br />

Syntax<br />

SORT(var)<br />

Description<br />

The SORT function enables you to sort a dynamic array.<br />

The elements in the dynamic array are sorted in ascending order, left-justified.<br />

<strong>UniBasic</strong> sorts the dynamic array by the highest system delimiter in the array.<br />

If the dynamic array contains any attribute marks, the sort is by attribute.<br />

Values and subvalues remain with the original attribute.<br />

If the dynamic array contains value marks and no attribute marks, the sort is<br />

by value. Subvalues are unaffected and remain with the original value.<br />

If the dynamic array contains subvalue marks and neither attribute marks<br />

nor value marks, the sort is by subvalue.<br />

Parameter<br />

The following table describes the parameter of the syntax.<br />

Parameter Description<br />

var The name of the dynamic array to sort.<br />

SORT Parameter<br />

SORT 1-773

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

Saved successfully!

Ooh no, something went wrong!