Manuals/calci/SORTING

From ZCubes Wiki
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)
Jump to navigation Jump to search
SORTING(Array,Ascending)


  • where Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Array} is set of numbers to be sorted,
  • Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Ascending} 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 Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Ascending} , the numbers are sorted in ascending order.
  • If Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://wikimedia.org/api/rest_v1/":): {\displaystyle Ascending} 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