954 bytes added
, 10:36, 13 April 2017
<div style="font-size:30px">'''SORTING(Array,Ascending)'''</div><br/>
*where <math>Array</math> is set of numbers to be sorted,
*<math>Ascending</math> is the value that decides whether numbers should be sorted in ascending or descending order.
==Description==
*This function sorts the array of numbers in either ascending or descending order.
*Sorting means arranging a set of data in some order.
*For non-zero value of <math>Ascending</math>, the numbers are sorted in ascending order.
*If <math>Ascending</math> is '''0''', the numbers are sorted in descending order.
==Examples==
#SORTING([5,9,15,2,106,344],1) = 2 5 9 15 106 344
==Related Videos==
{{#ev:youtube|MoKAC2U6WFE|280|center|SORTING}}
==See also==
*[[Manuals/calci/AVERAGE| AVERAGE]]
*[[Manuals/calci/PRODUCT| PRODUCT]]
==References==
[https://en.wikipedia.org/wiki/Sorting_algorithm Sorting Algorithm]
*[[Z_API_Functions | List of Main Z Functions]]
*[[ Z3 | Z3 home ]]