Sort Structure

Sort fields in ascending order.

您现在正在关注此提交

It really bugged me that MATLAB automatically adds a new field in a structure at the end of that structure.

This function remedies that problem. After you add a new field, just sort it with this function and everything is put into the right order again.

Notice that this function also sorts the structures within the structures and puts them at the beginning, before the other fields.

引用格式

Mark Jobse (2026). Sort Structure (https://ww2.mathworks.cn/matlabcentral/fileexchange/1958-sort-structure), MATLAB Central File Exchange. 检索时间: .

致谢

启发作品: Order all fields

一般信息

MATLAB 版本兼容性

  • 兼容任何版本

平台兼容性

  • Windows
  • macOS
  • Linux
版本 已发布 发行说明 Action
1.0.0.0