title: Insert New Data to Top of Google Spreadsheet using Google Sheets API v4
body: <p>I'm using Google Sheets to keep track of recent orders on my website. I'd like to add details of each new order to a Google spreadsheet and have the most recent order details show up on top of the sheet and the older entries on the bottom.</p>
  
  <p>I'm aware I could append new row after last row without knowing/providing Google with the row number using the following code:</p>
  
  <pre><code>// INSERTS NEW DATA AFTER LAST ROW
  ValueRange body = new ValueRange().setValues(writeData);
  AppendValuesResponse appendValuesResponse =
          service.spreadsheets().values().append(spreadsheetId, range, body)
                  .setValueInputOption(valueInputOption)
                  .execute();
  </code></pre>
  
  <p>However, this would mean that the newer entries are added to the bottom of the sheet instead of the top. My requirements are exactly the opposite. I need to add/append newer entries to the top of the sheet and have older entries move to the bottom.</p>
  
  <p>Is there a way to accomplish this natively using the API? </p>