You are here

public static function PHPExcel_ReferenceHelper::columnSort in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/ReferenceHelper.php \PHPExcel_ReferenceHelper::columnSort()

* Compare two column addresses * Intended for use as a Callback function for sorting column addresses by column * *

Parameters

string $a First column to test (e.g. 'AA'): * @param string $b Second column to test (e.g. 'Z') * @return integer

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/ReferenceHelper.php, line 79

Class

PHPExcel_ReferenceHelper
PHPExcel_ReferenceHelper (Singleton)

Code

public static function columnSort($a, $b) {
  return strcasecmp(strlen($a) . $a, strlen($b) . $b);
}