| 1 | |
| 2 | <refentry id="sortd"> |
| 3 | <indexterm id="IndexSortd"><primary>sortd</primary></indexterm> |
| 4 | <refentryinfo><title>Array Operations: sorting</title></refentryinfo> |
| 5 | <refmeta> |
| 6 | <refentrytitle>sortd</refentrytitle> |
| 7 | </refmeta> |
| 8 | <refnamediv> |
| 9 | <refname>sortd</refname> |
| 10 | <refpurpose> |
| 11 | Sorts an array in descending order. |
| 12 | </refpurpose> |
| 13 | </refnamediv> |
| 14 | |
| 15 | <refsect1> |
| 16 | <title>Description</title> |
| 17 | <para> |
| 18 | Takes a numeric array (k or i-rate) and returns it sorted in |
| 19 | descending order. |
| 20 | </para> |
| 21 | </refsect1> |
| 22 | |
| 23 | <refsect1> |
| 24 | <title>Syntax</title> |
| 25 | <synopsis>k/i[]<command>sortd</command> k/i[] (k- or i-arrays )</synopsis> |
| 26 | </refsect1> |
| 27 | |
| 28 | <refsect1> |
| 29 | <title>Examples</title> |
| 30 | <para> |
| 31 | Here is an example of the sortd opcode. It uses the file <ulink url="examples/sortd.csd"><citetitle>sortd.csd</citetitle></ulink>. |
| 32 | <example> |
| 33 | <title>Example of the sortd opcode.</title> |
| 34 | <para>See the sections <link linkend="UsingRealTime"><citetitle>Real-time Audio</citetitle></link> and <link linkend="CommandFlags"><citetitle>Command Line Flags</citetitle></link> for more information on using command line flags.</para> |
| 35 | <xi:include href="examples-xml/sortd.csd.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |
| 36 | </example> |
| 37 | </para> |
| 38 | </refsect1> |
| 39 | |
| 40 | <refsect1> |
| 41 | <title>See Also</title> |
| 42 | <para><link linkend="arrayOpcodes"><citetitle>Array opcodes</citetitle></link></para> |
| 43 | </refsect1> |
| 44 | |
| 45 | <refsect1> |
| 46 | <title>Credits</title> |
| 47 | <para>Author: Victor Lazzarini</para> |
| 48 | <para>New in version 6.09</para> |
| 49 | </refsect1> |
| 50 | </refentry> |