image thumbnail

Locale-sensitive sort

version 1.1.0 (1.77 KB) by Jan Studnicka
Function sort_locale performs locale-sensitive sort in MATLAB.

2 Downloads

Updated 27 Apr 2020

View License

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 (2021). Locale-sensitive sort (https://www.mathworks.com/matlabcentral/fileexchange/75160-locale-sensitive-sort), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2020a
Compatible with R2016b and later releases
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!