The script I found in this thread works perfectly. It pastes the 18 rows from the one sheet that uses importxml into a values-only sheet, at the bottom, so that I can keep records of all the imports.
Is there something I could add to it that would paste the rows in reverse order? I don't mean pasting at the top of my values-only sheet, I mean pasting at the bottom but in reverse-order.
Here is the script that is referenced in that link (modified for my usage):
function copyPaste() {
var ss=SpreadsheetApp.getActive();
var srcsh=ss.getSheetByName('Imported');
var dessh=ss.getSheetByName('ImportedValues');
var srcrg=srcsh.getRange('A6:P23');
var data=srcrg.getValues();
var desrg=dessh.getRange(dessh.getLastRow() + 1,1,18,16);
desrg.setValues(data);}
Background: The import gets the info I need in a newest first order, and I would like my Values-only sheet to maintain an oldest-first order.