Manuals/calci/SORTING

Revision as of 04:36, 13 April 2017 by Swapna (talk | contribs) (Created page with "<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 deci...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
SORTING(Array,Ascending)


  • where is set of numbers to be sorted,
  • 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  , the numbers are sorted in ascending order.
  • If   is 0, the numbers are sorted in descending order.


Examples

  1. SORTING([5,9,15,2,106,344],1) = 2 5 9 15 106 344


Related Videos

SORTING

See also

References

Sorting Algorithm