Closed BT643 closed 8 years ago
Hello BT643,
Yes you're right, Google doesn't seem to be honoring the "reverse" parameter.
I've tried "orderby" and that works e.g.
$listFeed = $worksheet->getListFeed(array("orderby" => "column:name"));
Or you can just do an array_reverse when looping over the results e.g.
foreach(array_reverse($listFeed->getEntries()) as $entry) {
// $entry->getValues();
}
Is anyone else having issues trying to get spreadsheets in reverse order (ie - row 100 down to row 1).
I have my code like that, but with "reverse" set to "true" or "false" the results I get are identical (results come through fine, but they appear the order they are in the Google Sheets web UI. I need them in reverse order.
Not sure why the reverse option is not working.
Any ideas?