%% Rearrange Heatmap Rows Based on Multiple Columns
% Create a heatmap of utility outages and rearrange the rows using values from multiple columns. Sort the rows so that the column 'SouthWest' appears in ascending order. Since that column contains duplicate values, use the column 'NorthEast' to sort the remaining rows.

T = readtable('outages.csv');
h = heatmap(T,'Region','Cause');
sorty(h,{'SouthWest','NorthEast'})

% Copyright 2012 The MathWorks, Inc.