These Matlab functions perform a nested sort of a one-dimensional struct array. That is, the struct array is sorted by one field, then those entries of the array that have the same value for that field are sorted by a second field, etc.
Nested sort of structure arrays