34 lines
985 B
HTML
34 lines
985 B
HTML
<html>
|
|
<head>
|
|
<title>STAB_SortByValue</title>
|
|
<meta name="Author" content="Joey">
|
|
<link rel="stylesheet" type="text/css" href="../webdocs.css">
|
|
</head>
|
|
<body>
|
|
<h1><a name="ape_stab_sortbyvalue"></a>STAB_SortByValue</h3>
|
|
<p>The <b>STAB_SortByValue</b> function sorts the elements in a STAB object
|
|
using the associated float values.</p>
|
|
|
|
<PRE class="syntax"><b>extern STAB_SortByValue</b>
|
|
<b> float</b><i> handle</i> // handle to STAB
|
|
<b> float</b><i> revflag</i> // (optional) sort descending flag
|
|
</PRE>
|
|
|
|
<h4>Parameters</h4>
|
|
|
|
<dl>
|
|
<dt><i>handle</i></dt>
|
|
<dd>[in] Handle to a STAB object previously returned from
|
|
<a href="stab_create.html"><b>STAB_Create</b></a>.
|
|
</dd>
|
|
<dt><i>revflag</i></dt>
|
|
<dd>[in] If specified and non-zero, the list is sorted in reverse (descending) order.</dd>
|
|
</dl>
|
|
|
|
<h4>Remarks</h4>
|
|
<p>If <i>handle</i> is not a valid STAB handle, an error message will
|
|
be printed to the console.</p>
|
|
|
|
</body>
|
|
</html>
|
|
</html>
|