title: sorting LinkedHashMap using IDs
body: <p>I am using LinkedHashMap to read data from excel file and store them ina table in mysql!
  How can i sort the LinkedHashMap to store the data with descending IDs?
  Here is an example of my excel file:</p>
  
  <p>ID  Name    Salary<br>
  50  christine   2349000<br>
  43  paulina 1245874<br>
  54  laura   4587894      </p>
  
  <p>The code below is for store the data of the excel file in the table!</p>
  
  <pre><code>private static LinkedHashMap[] parseExcelColumnData(List sheetData) {
  
              LinkedHashMap[] tousRows = new LinkedHashMap[sheetData.size() - 1];
              for (int rowCounter = 1; rowCounter &lt; sheetData.size(); rowCounter++) {
  
                  List list = (List) sheetData.get(rowCounter);
  
                  LinkedHashMap&lt;String, Integer&gt; tableFields = new LinkedHashMap(list.size());
                  String str;
                  String[] tousFields = new String[list.size()];
                  int i = 0;
  
                  for (int j = 0; j &lt; list.size(); j++) {
                      Cell cell = (Cell) list.get(j);
                      if (cell != null) {
                          if (cell.getCellType() == Cell.CELL_TYPE_NUMERIC) {
                              tableFields.put(String.valueOf(cell
                                      .getNumericCellValue()), cell.getCellType());
                          } else if (cell.getCellType() == Cell.CELL_TYPE_STRING) {
                              tableFields.put(cell.getStringCellValue(), cell
                                      .getCellType());
                          } else if (cell.getCellType() == Cell.CELL_TYPE_BOOLEAN) {
                              tableFields.put(String.valueOf(cell
                                      .getBooleanCellValue()), cell.getCellType());
                          }
                      }
  
                  }
                  tousRows[rowCounter - 1] = tableFields;
              }
  
              return tousRows;
  
          }
  </code></pre>