clear; clc;

stocks = {"GOOG", 15;
          "TSMC", 12;
          "AAPL", 18};
[~, idx] = sort([stocks{:, 2}], "descend")
stocks = stocks(idx, :)