Show in alphabetical order

The objetive of the program is to show a data list that is saved in a notepad. But I want to show it in alphabetical order from the name(4th column). What can I change? Thanks

Answers (1)

[~, sortidx] = sort({users.name});
for k = sortidx
...
end

2 Comments

What should I write between "for k = sortidx" and "end"?
What you already have in your for loop.

Sign in to comment.

Asked:

on 29 Nov 2017

Commented:

on 29 Nov 2017

Community Treasure Hunt

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

Start Hunting!