clear; clc;

%%
data = randi(1000, 1, 5)
sort(data, 'descend')

%%
stocks = {'GOOG', 15;
          'TMSC', 12;
          'AAPL', 18};
[~, idx] = sort([stocks{:, 2}])
stocks = stocks(idx, :)

%%
A = 'NTUCSIE'
idx2 = randperm(length(A))
A(idx2)










