<?xml version="1.0" encoding='utf-8'?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="card1" title="Sorting algorithm - Page 2 - Wikipedia">
<p>
<a accesskey="1" href="page.php?w=sorting_algorithm&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=sorting_algorithm&amp;p=3">3.Next</a>
</p>
<p>optimizing the <a href="page.php?w=Algorithmic_efficiency">efficiency</a> of other algorithms (such as <a href="page.php?w=search_algorithm">search</a> and <a href="page.php?w=merge_algorithm">merge</a> algorithms) that require input data to be in sorted lists. Sorting is also often useful for <a href="page.php?w=Canonicalization">canonicalizing</a> data and for producing human-readable output.</p>

<p>Formally, the output of any sorting algorithm must satisfy two conditions:<br/>
# The output is in <a href="page.php?w=monotonic">monotonic</a> order</p><p>
<a accesskey="1" href="page.php?w=sorting_algorithm&amp;p=1">1.Previous</a><br />
<a accesskey="3" href="page.php?w=sorting_algorithm&amp;p=3">3.Next</a>
</p>

<do type="prev" label="Search">
        <go href="search.wml"/>
</do>

</card>
</wml>
