<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="zl.sort" module="Max" category="Lists">
	<digest>
		Arrange a list in alphanumeric order
	</digest>
	<description>
		zl.sort is used to sort the contents of a list. An argument is used to specify the sorting order. An <m>int</m> of -1 sorts the input list in descending order, and any other value sorts the input list in ascending order. This value can also be specified as an input in the right inlet.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			TEXT_HERE
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="anything">
			<digest>
				list to sort
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="int">
			<digest>
				sort direction
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="anything">
			<digest>
				sorted list
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
		<outlet id="1" type="list">
			<digest>
				reordered indexes list
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg id="0" name="order" type="int" optional="1">
			<digest>
				Sort direction
			</digest>
			<description>
				An <m>int</m> of -1 sorts the input list in descending order, and any other value sorts the input list in ascending order.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="bang">
			<arglist />
			<digest>
				Repeat previous output
			</digest>
			<description>
				TEXT_HERE
			</description>
		</method>
		<method name="int">
			<arglist>
				<arg name="ARG_NAME_0" type="int" optional="0" />
			</arglist>
			<digest>
				Sort order
			</digest>
			<description>
				An int in the right inlet sets the sorting order. An <m>int</m> of -1 sorts the input list in descending order, and any other value sorts the input list in ascending order.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="ARG_NAME_0" type="float" optional="0" />
			</arglist>
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="ARG_NAME_0" type="list" optional="0" />
			</arglist>
			<digest>
				List to sort
			</digest>
			<description>
				A list in the left inlet is sorted and output.
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="ARG_NAME_0" type="list" optional="0" />
			</arglist>
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</method>
		<method name="mode">
			<arglist>
				<arg name="ARG_NAME_0" type="symbol" optional="0" />
				<arg name="ARG_NAME_1" type="int" optional="0" />
			</arglist>
			<digest>
				Set zl mode
			</digest>
			<description>
				The word 'mode' followed by one of the following words will set the mode of the object:
				<br />
				change, compare, delace, ecils, group, indexmap, iter, join, lace, len, lookup, median, mth, nth, queue, reg, rev, rot, scramble, sect, slice, sort, stack, stream, sub, sum, swap, thin, union, or unique.
				<br />
				<br />
				See the reference for the corresponding mode for more information.
			</description>
		</method>
		<method name="zlclear">
			<arglist />
			<digest>
				Initialize the object
			</digest>
			<description>
				Clears the currently held list.
			</description>
		</method>
		<method name="zlreset">
			<arglist />
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="fuzzy" get="1" set="1" type="atom" size="1">
			<digest>
				Fuzzy floating-point comparison epsilon
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="default" get="1" set="1" type="atom" size="1" value="0." />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Fuzzy floating-point comparison epsilon" />
			</attributelist>
		</attribute>
		<attribute name="zlmaxsize" get="1" set="1" type="atom_long" size="1">
			<digest>
				Maximum List Length
			</digest>
			<description>
				TEXT_HERE
			</description>
			<attributelist>
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Maximum List Length" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example caption="" img="" />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="zl" />
		<seealso name="zl.change" />
		<seealso name="zl.compare" />
		<seealso name="zl.delace" />
		<seealso name="zl.ecils" />
		<seealso name="zl.filter" />
		<seealso name="zl.group" />
		<seealso name="zl.indexmap" />
		<seealso name="zl.iter" />
		<seealso name="zl.join" />
		<seealso name="zl.lace" />
		<seealso name="zl.len" />
		<seealso name="zl.lookup" />
		<seealso name="zl.median" />
		<seealso name="zl.mth" />
		<seealso name="zl.nth" />
		<seealso name="zl.queue" />
		<seealso name="zl.reg" />
		<seealso name="zl.rev" />
		<seealso name="zl.rot" />
		<seealso name="zl.scramble" />
		<seealso name="zl.sect" />
		<seealso name="zl.slice" />
		<seealso name="zl.stack" />
		<seealso name="zl.stream" />
		<seealso name="zl.sub" />
		<seealso name="zl.sum" />
		<seealso name="zl.swap" />
		<seealso name="zl.thin" />
		<seealso name="zl.union" />
		<seealso name="zl.unique" />
	</seealsolist>
	<misc name="Output">
		<entry name="anything">
			<description>
				Out left outlet:
				<br />
				Sorted list.
				<br />
				<br />
				Out right outlet:
				<br />
				Indexes of sorted items.
			</description>
		</entry>
	</misc>
</c74object>
