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'})
Citar como
Jan Studnicka (2025). Locale-sensitive sort (https://www.mathworks.com/matlabcentral/fileexchange/75160-locale-sensitive-sort), MATLAB Central File Exchange. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxEtiquetas
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.
Versión | Publicado | Notas de la versión | |
---|---|---|---|
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 |