clear; clc;

stocks = {"GOOG", 800;
          "TSLA", 400;
          "AMZN", 700};
[~, loc] = max([stocks{:, 2}])
[~, idx] = sort([stocks{:, 2}], "descend")
stocks = stocks(idx, :)