Sort cell array or char array in textual and numerical mode. Primary sort by first letter, secondary by second letter and so on. Numbers are considered an numerical values. The main interest in this function is that it can sort numbers with text, so string like 'a60' comes before 'a100'.
Designed specially for sorting files list.
Oren Yagev (2022). SORTN - sort textual lists (https://www.mathworks.com/matlabcentral/fileexchange/8399-sortn-sort-textual-lists), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!