Customizable Natural-Order Sort
Note de l’éditeur : This file was selected as MATLAB Central Pick of the Week
- a +/- sign
- a decimal point and decimal fraction
- E-notation exponent
- decimal, octal, hexadecimal or binary notation
- Inf or NaN values
- criteria supported by regular expressions: lookarounds, quantifiers, etc.
- ascending/descending sort direction
- character case sensitivity/insensitivity
- relative order of numbers vs. characters
- relative order of numbers vs NaNs
Citation pour cette source
Stephen23 (2024). Customizable Natural-Order Sort (https://www.mathworks.com/matlabcentral/fileexchange/34464-customizable-natural-order-sort), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
Remerciements
Inspiré par : asort: a pedestrian alphanumeric string sorter, sort_nat: Natural Order Sort, Number to Scientific Prefix, Number to Words, Natural-Order Row Sort, Natural-Order Filename Sort, Words to Number, Scientific Prefix to Number, Next Available Filename, Custom List / Arbitrary Sequence Sort
A inspiré : {{7*7}}\u{00022}<s>dsadhhh, Words to Number, Scientific Prefix to Number, Custom List / Arbitrary Sequence Sort, Number to Scientific Prefix, Numeric to Ordinal-String, Number to Words, Natural-Order Row Sort, Natural-Order Filename Sort, Interactive Regular Expression Tool
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
3.4.6 | * Documentation improvements. |
||
3.4.5 | * Accept decimal comma as well as decimal point.
|
||
3.4.4 | * Add testcases. |
||
3.4.3 | * Now R2009b compatible. |
||
3.4.2 | * Edit description & help. |
||
3.4.1 | * Edit description & help. |
||
3.4.0 | * Add plenty of testcases.
|
||
3.3.0 | * Improve test function, add test cases. |
||
3.2.0 | * Update TESTFUN. |
||
3.1.0 | * More robust TESTFUN pretty-print code.
|
||
3.0.5 | * Improve examples. |
||
3.0.4 | * Correct summary. |
||
3.0.3 | * Improve string handling. |
||
3.0.2 | * Simplify numeric class handling.
|
||
3.0.1 | * handle single element with no number. |
||
3.0.0 | * Accepts and sorts a string array, categorical array, cell array of char, etc.
|
||
2.1.2 | * Consistent alignment tab/spaces. |
||
2.1.1 | * Add error IDs. |
||
2.1.0 | * Fix handling of char<num. |
||
2.0.0 | Total rewrite: faster and less memory.
|
||
1.11.0.0 | * Consistent internal variable names. |
||
1.10.0.0 | * Minor help edit.
|
||
1.9.0.0 | * Improve binary numeric handling.
|
||
1.8.0.0 | * Improved binary substring parsing.
|
||
1.7.0.0 | - Update documentation only, improve examples. |
||
1.6.0.0 | - Add binary numeric parsing.
|
||
1.5.0.0 | - Simplify hexadecimal example.
|
||
1.4.0.0 | - Now parses hexadecimal and octal substrings.
|
||
1.3.0.0 | - Implement more compact sort algorithm.
|
||
1.1.0.0 | - Add examples showing different numeric tokens.
|
||
1.0.0.0 |