Skip to content

Conversation

frantzmiccoli
Copy link
Contributor

This is:

- [x] a bugfix
- [ ] a new feature

Checklist:

Why this change is needed?

I stumbled upon a case where the value of a VLOOKUP was incorrectly returned compared with Excel.

I have also observed that PHP associative sorting does not preserve key order (for keys which have the same value), which explain the extra test on line 729. See https://gist.github.com/frantzmiccoli/bd03395b8fc831c67828718192c214b8 if you wish to test for yourself with asort. uasort behaves the same way but the gist was quicker to write with asort.

@PowerKiKi PowerKiKi closed this in 294ba58 Dec 15, 2018
@PowerKiKi
Copy link
Member

Thanks ! I merged with a few modifications

guillaume-ro-fr pushed a commit to guillaume-ro-fr/PhpSpreadsheet that referenced this pull request Jun 12, 2019
It was inconsistent with spreadsheet software before.

Closes PHPOffice#809
BlackyTay pushed a commit to BlackyTay/PhpSpreadsheet that referenced this pull request Aug 8, 2025
It was inconsistent with spreadsheet software before.

Closes PHPOffice#809
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants