Hi,
While I try to figure this out, I have problems again..
To sort strings in listbox,
e.g.,I have strings below! 'p1' 'p2' 'p10' 'p12' 'p21'
To sort those strings, I tried to use sort(),
and then, result was like this..
'p1' 'p10' 'p12' 'p2' 'p21'
%%%% :-( %%%%
But, I want to sort A as, 'p1' 'p2' 'p10' 'p12' 'p21'
What do I have to do for this?
I'm looking forward to your answer!
5 Comments
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/41400-what-do-i-have-to-do-to-sort-strings-properly-in-listbox#comment_85986
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/41400-what-do-i-have-to-do-to-sort-strings-properly-in-listbox#comment_85986
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/41400-what-do-i-have-to-do-to-sort-strings-properly-in-listbox#comment_85987
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/41400-what-do-i-have-to-do-to-sort-strings-properly-in-listbox#comment_85987
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/41400-what-do-i-have-to-do-to-sort-strings-properly-in-listbox#comment_85990
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/41400-what-do-i-have-to-do-to-sort-strings-properly-in-listbox#comment_85990
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/41400-what-do-i-have-to-do-to-sort-strings-properly-in-listbox#comment_85991
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/41400-what-do-i-have-to-do-to-sort-strings-properly-in-listbox#comment_85991
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/41400-what-do-i-have-to-do-to-sort-strings-properly-in-listbox#comment_85993
Direct link to this comment
https://fr.mathworks.com/matlabcentral/answers/41400-what-do-i-have-to-do-to-sort-strings-properly-in-listbox#comment_85993
Sign in to comment.