nestedSortStruct

Perform a nested sort of a struct array based on multiple fields.

https://github.com/hugheylab/nestedSortStruct

Download
Download

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Cite As

Jake Hughey (2026). nestedSortStruct (https://github.com/hugheylab/nestedSortStruct), GitHub. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.4.0

No longer ignores directions for sort order.

Download
1.3.0

Simplified nestedSortStruct to avoid converting from cell to matrix, resulting in ~20% speedup. Thanks Jori. Fixed minor naming inconsistencies in nestedSortStruct2.

Download
1.2.0

Fixed nestedSortStruct so column struct arrays are sorted properly.

Download
1.1.0

Minor fix to formatting of initial comments in nestedSortStruct2.m.

Download
1.0.0

Download
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.