Replies: 3 comments
-
$titleArray = $spreadsheet->getSheetNames();
sort($titleArray);
$index = -1;
foreach ($titleArray as $title) {
++$index;
$spreadsheet->setIndexByName($title, $index);
} |
Beta Was this translation helpful? Give feedback.
0 replies
-
Don't see a way to "mark as answer", but, 3+ months after the last message, no reason to think it isn't right. Closing discussion. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is it possible to sort the tabs of my Excel workbook once it is generated?
PhpSpreadsheet Version : 1.18 Php 8.1 Laravel 8.75
Thank you in advance for your help.
David
Beta Was this translation helpful? Give feedback.
All reactions