In computing, natural sort order (or natural sorting) is the ordering of strings in alphabetical order, except that multi-digit numbers are treated atomically, i.e., as if they were a single character. Natural sort order has been promoted as being more human-friendly ("natural") than machine-oriented, pure alphabetical sort order.[1]
For example, in alphabetical sorting, "z11" would be sorted before "z2" because the "1" in the first string is sorted as smaller than "2", while in natural sorting "z2" is sorted before "z11" because "2" is treated as smaller than "11".
Alphabetical sorting:
z11
z2
Natural sorting:
z2
z11
Functionality to sort by natural sort order is now widely available in software libraries for many programming languages.[2][3][4][5][6][7] During the 1996 MacHack conference, the Natural Order Mac OS System Extension was conceived and implemented overnight on-site as an entry for the Best Hack contest.[8][9] Dave Koelle wrote the Alphanum Algorithm in 1997[10] and Martin Pool published Natural Order String Comparison in 2000.[11]
^"Sorting for Humans : Natural Sort Order". blog.codinghorror.com. 12 December 2007.
^"PHP: natsort - Manual". php.net.
^"Sort::Naturally - metacpan.org". metacpan.org.
^Morton, Seth M. (23 December 2021). "natsort: Simple yet flexible natural sorting in Python" – via PyPI.
In computing, naturalsortorder (or naturalsorting) is the ordering of strings in alphabetical order, except that multi-digit numbers are treated atomically...
lexicographical order than a later date up to year 9999. This date ordering makes computerized sorting of dates easier by avoiding the need for a separate sorting algorithm...
Alphabetical order Asciibetical order Chinese character orders Sorting Taxonomic sequence Mac and Mc together Unicode equivalence Naturalsortorder Historically...
implementations produce a stable sort, which means that the relative order of equal elements is the same in the input and output. Merge sort is a divide-and-conquer...
Seven (which was stylised as Se7en), they may be sorted as if they were those letters. Naturalsortorder orders strings alphabetically, except that multi-digit...
Deuce (high) to Seven (low) Naturalsortorder This disambiguation page lists articles associated with the title Naturalorder. If an internal link led you...
sort, meaning that it can sort items of any type for which a "less-than" relation (formally, a total order) is defined. It is a comparison-based sort...
Bead sort, also called gravity sort, is a naturalsorting algorithm, developed by Joshua J. Arulanandham, Cristian S. Calude and Michael J. Dinneen in...
stroke alphabetical order, also called YES stroke-ordersorting, briefly YES order or YES sorting, is a Chinese character sorting method based on a stroke...
Natural law (Latin: ius naturale, lex naturalis) is a system of law based on a close observation of naturalorder and human nature, from which values...
Timsort is a hybrid, stable sorting algorithm, derived from merge sort and insertion sort, designed to perform well on many kinds of real-world data....
also be used for ordering (as in "this is the third largest city in the country"), in which case they serve as ordinal numbers. Natural numbers are sometimes...
Natural language processing (NLP) is an interdisciplinary subfield of computer science and information retrieval. It is primarily concerned with giving...
generally to some sort of totally ordered subsets of a given partially ordered set. An extension of a given partial order to a total order is called a linear...
total ordering for finite sequences of objects that can themselves be totally ordered. In the shortlex ordering, sequences are primarily sorted by cardinality...
parallel processor. For simplicity, assume we are sorting a list of natural numbers. The sorting method is illustrated using uncooked rods of spaghetti: For each...
controlled natural language. Controlled natural languages are subsets of natural languages whose grammars and dictionaries have been restricted in order to reduce...
less than all keys in its right subtree, in-order traversal retrieves the keys in ascending sortedorder. Visit the current node. Recursively traverse...
and polymath. His writings cover a broad range of subjects spanning the natural sciences, philosophy, linguistics, economics, politics, psychology, and...
total order or linear order is a partial order under which every pair of elements is comparable, i.e. trichotomy holds. For example, the natural numbers...
this sort of rule, if such is the case for the other things mentioned. It is not advantageous for one to be held in slavery who is not a natural slave...
The Order of Assassins or simply the Assassins (Arabic: حَشّاشِین, romanized: Ḥashshāshīyīn; Persian: حشاشين, romanized: Ḥaššāšīn) were a Nizari Isma'ili...