Vendor/phpspreadsheet/phpoffice/phpspreadsheet/src/PhpSpreadsheet/Collection/Cells.php
public function getSortedCoordinates()
    {
        $sortKeys = [];
        foreach ($this->getCoordinates() as $coord) {
            sscanf($coord, '%[A-Z]%d', $column, $row);
            $sortKeys[sprintf('%09d%3s', $row, $column)] = $coord;
        }
        ksort($sortKeys);

        return array_values($sortKeys);
    }
public function getSortedCoordinates()
    {
        $sortKeys = [];
        foreach ($this->getCoordinates() as $coord) {
            sscanf($coord, '%[A-Z]%d', $column, $row);
            $sortKeys[sprintf('%09d%3s', $row, $column)] = $coord;
        }
        ksort($sortKeys);

        return array_values($sortKeys);
    }
public function getSortedCoordinates ( ) { $ sortKeys = [ ] ; foreach ( $ this -> getCoordinates ( ) as $ coord ) { sscanf ( $ coord , '%[A-Z]%d' , $ column , $ row ) ; $ sortKeys [ sprintf ( '%09d%3s' , $ row , $ column ) ] = $ coord ; } ksort ( $ sortKeys ) ; return array_values ( $ sortKeys ) ; }
Get a sorted list of all cell coordinates currently held in the collection by row and column.

@return string[]
Get a sorted list of all cell coordinates currently held in the collection by row and column .