Found an example of a sorting solution for a multidimensional array using the usort() and array_multisort() functions
https://world-hello.ru/php/how-to-php/otsortirovat-mnogomernyj-massiv.htmlIn theory, you can read the array and output it back sorted by the desired value. But I can't figure it out.
All this is needed to create a list of orders for shipment. For the Shipment BP and the Shipping List template.
In theory, this is generally a typical task for each Crm user - to create a shipping list and there should be a proven solution on how to do this. Perhaps there is a simpler solution, such as exporting to a Google spreadsheet. But the option with an array is more convenient. And it is already ready, it remains to figure out the sorting and I hope everything :)