4647484950515253545556
ca.EndRow = 9; //Specify the last column index. ca.EndColumn = 2; //Sort data in the specified data range (A2:C10) sorter.sort(cells, ca); //Saving the excel file workbook.save("data/AsposeSortedData.xls"); } }