We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
NumericalSort[list]
sorts the elements of list into numerical order.
Details Examplesopen allclose all Basic Examples (2)This may be different from the canonical expression order:
Groups of elements that can be compared with each other will typically be together in the result:
Scope (7)-∞ comes before any real-valued expression, and ∞ comes after any real-valued expression:
Sort arguments of any expression:
Sort associations by numerical value:
Sort expressions of the same head by numerical value:
Shorter expressions are sorted first:
Complex-value expressions are sorted first by the real part and then by the absolute value of the imaginary part:
Sort quantities having compatible units:
If incompatible units are found, compatible units are grouped together:
Properties & Relations (2) Possible Issues (1)NumericalSort will not guarantee a particular ordering for different representations of the same number:
The canonical order will always rearrange in a definite way:
Wolfram Research (2017), NumericalSort, Wolfram Language function, https://reference.wolfram.com/language/ref/NumericalSort.html. TextWolfram Research (2017), NumericalSort, Wolfram Language function, https://reference.wolfram.com/language/ref/NumericalSort.html.
CMSWolfram Language. 2017. "NumericalSort." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/NumericalSort.html.
APAWolfram Language. (2017). NumericalSort. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NumericalSort.html
BibTeX@misc{reference.wolfram_2025_numericalsort, author="Wolfram Research", title="{NumericalSort}", year="2017", howpublished="\url{https://reference.wolfram.com/language/ref/NumericalSort.html}", note=[Accessed: 12-July-2025 ]}
BibLaTeX@online{reference.wolfram_2025_numericalsort, organization={Wolfram Research}, title={NumericalSort}, year={2017}, url={https://reference.wolfram.com/language/ref/NumericalSort.html}, note=[Accessed: 12-July-2025 ]}
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4