clear; clc;

stocks = {"GOOG", 100;
          "AAPL", 50;
          "TSMC", 200};
      
[~, idx] = sort([stocks{:, 2}])
stocks = stocks(idx, :) % row exchange