Hi, It seems like natsortfiles function does not work..
This one helped!
[~, reindex] = sort( str2double( regexp( {A.name}, '\d+', 'match', 'once' )))
A = A(reindex) ;

Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!