%% Return Rearranged Heatmap Column Values
% Create a heatmap of utility outages and sort the values in the 'winter storm' row so that they appear in ascending order. Return the sorted color data and the column values (x values) in the order that they appear along the x-axis.

T = readtable('outages.csv');
h = heatmap(T,'Region','Cause');
[C,x] = sortx(h,'winter storm')

% Copyright 2012 The MathWorks, Inc.