Locale-sensitive sort

版本 1.1.0 (1.8 KB) 作者: Jan Studnicka
Function sort_locale performs locale-sensitive sort in MATLAB.
5.0 次下载
更新时间 2020/4/27

查看许可证

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'})

引用格式

Jan Studnicka (2024). Locale-sensitive sort (https://www.mathworks.com/matlabcentral/fileexchange/75160-locale-sensitive-sort), MATLAB Central File Exchange. 检索来源 .

MATLAB 版本兼容性
创建方式 R2020a
与 R2016b 及更高版本兼容
平台兼容性
Windows macOS Linux
标签 添加标签

Community Treasure Hunt

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

Start Hunting!
版本 已发布 发行说明
1.1.0

- function now remembers the shape of the input vector
- added MATLAB Release Compatibility information
- added validation of input arguments
- added link to the page with supported languages

1.0.2

Updated Summary and Description.

1.0.1

Name changed to "Locale-sensitive sort".

1.0.0