A recursive version of MatLab function "orderfields".
Like "orderfields", function "OrderAllFields" orders fieldnames in a structure array by sorting them alphabetically. Contrary to "orderfields", which only orders top-level fields, function "OrderAllFields" orders fields of a structure array on all its levels (thereby also passing levels which have a cell array structure rather than a structure array structure).
Paul A.M. Bune (2021). Order all fields (https://www.mathworks.com/matlabcentral/fileexchange/19459-order-all-fields), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Sort Structure
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!