Locale-sensitive sort
Function sort_locale performs locale-sensitive sort in MATLAB. Input argument can be cell array of character vectors or string array.
Default locale is cs_CZ. Other supported languages can be found here: https://www.oracle.com/java/technologies/javase/jdk8-jre8-suported-locales.html
Example:
>> S = sort_locale({'zelí','mrkev','česnek','petržel','řepa'})
>> S = sort_locale({'zelí','mrkev','česnek','petržel','řepa'},{'cs', 'CZ'})
Cite As
Jan Studnicka (2026). Locale-sensitive sort (https://uk.mathworks.com/matlabcentral/fileexchange/75160-locale-sensitive-sort), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.1.0 | - function now remembers the shape of the input vector
|
||
| 1.0.2 | Updated Summary and Description. |
||
| 1.0.1 | Name changed to "Locale-sensitive sort". |
||
| 1.0.0 |
