Sort Command

From GeoGebra Manual
Revision as of 22:21, 14 January 2011 by Zbynek (talk | contribs) (1 revision)
Jump to: navigation, search


Sort[List]
Sorts a list of numbers, text objects, or points.
Note: Lists of points are sorted by x-coordinates.
Examples:
  • Sort[{3, 2, 1}] gives you the list {1, 2, 3}.
  • Sort[{"pears", "apples", "figs"}] gives you the list elements in alphabetical order.
  • Sort[{(3, 2), (2, 5), (4, 1)}] gives you {(2, 5), (3, 2), (4, 1)}.
© 2024 International GeoGebra Institute