mirror of
https://github.com/retailcrm/PHPExcel.git
synced 2024-11-25 23:06:03 +03:00
General: (umpirsky) Work Item GH-548 - Optimize vlookup() sort
This commit is contained in:
parent
1ba2ae0cec
commit
e4d29824a6
@ -674,10 +674,10 @@ class PHPExcel_Calculation_LookupRef
|
||||
{
|
||||
reset($a);
|
||||
$firstColumn = key($a);
|
||||
if (strtolower($a[$firstColumn]) == strtolower($b[$firstColumn])) {
|
||||
if (($aLower = strtolower($a[$firstColumn])) == ($bLower = strtolower($b[$firstColumn]))) {
|
||||
return 0;
|
||||
}
|
||||
return (strtolower($a[$firstColumn]) < strtolower($b[$firstColumn])) ? -1 : 1;
|
||||
return ($aLower < $bLower) ? -1 : 1;
|
||||
}
|
||||
|
||||
|
||||
|
@ -26,6 +26,7 @@
|
||||
Planned for 1.8.2
|
||||
- Bugfix: (MBaker) - Fix to getCell() method when cell reference includes a worksheet reference
|
||||
- Bugfix: (ncrypthic) Work Item GH-570 - Ignore inlineStr type if formula element exists
|
||||
- General: (umpirsky) Work Item GH-548 - Optimize vlookup() sort
|
||||
|
||||
|
||||
2015-04-30 (v1.8.1):
|
||||
|
Loading…
Reference in New Issue
Block a user