image thumbnail

SORTN - sort textual lists

version (5.49 KB) by Oren Yagev
Sort text lists containing letters and numbers.


Updated 31 Mar 2016

View License

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.

Cite As

Oren Yagev (2022). SORTN - sort textual lists (, MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R13
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!