You are here

public function PHPExcel_CachedObjectStorage_CacheBase::getSortedCellList in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/CacheBase.php \PHPExcel_CachedObjectStorage_CacheBase::getSortedCellList()

* Sort the list of all cell addresses currently held in cache by row and column * *

Return value

string[]

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/CachedObjectStorage/CacheBase.php, line 182

Class

PHPExcel_CachedObjectStorage_CacheBase
PHPExcel_CachedObjectStorage_CacheBase

Code

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