$excel->sort_data('Name of Worksheet',0,'DESC');
# sort data of worksheet - ASC or DESC $excel->sort_data('Name of Worksheet',0,'DESC');
sort_data sorts the rows. All sorts for one worksheet are combined, so
$excel->sort_data('Name of Worksheet',0,'DESC'); $excel->sort_data('Name of Worksheet',1,'ASC');
will sort the column 0 first and then (within this sorted data) the column 1.