FUNCTION REFERENCE
orderfields
Order structure fields by name.
Order structure fields by name.
Syntax
S = orderfields(S1)Returns S1 with its fields in ASCII order of their names.
Example
s.b = 1; s.a = 2; fieldnames(orderfields(s)) % {'a'; 'b'}Differences from MATLAB: one input and one output only.
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.