%% Sort String Array
% Starting in R2017a, you can create string arrays using double quotes, and sort them using the sort function. Sort strings in each column of a string array according to Unicode® dictionary order.

A = ["Santos","Burns"; ...
     "Jones","Morita"; ...
     "Petrov","Adams"];
B = sort(A)

%
% Sort the strings in each row.

B = sort(A,2)

% Copyright 2012 The MathWorks, Inc.