Open gbowne-quickbase opened 1 year ago
Associative arrays are sorted with ksort()
using the SORT_NATURAL
sorting method:
Guessing that SORT_NATURAL
is not doing anything special for UUIDs, because they aren’t completely numeric.
The strange part to me about that diff is how the keys would have ended up in the original order, as 0
definitely feels like it should come before 2
when ordering things “natuarlly”.
What happened?
Description
We're seeing some weird behavior where sorting is not being treated as numeric hex values but as string/hex hybrids, and this leading zero is not taken into account
Steps to reproduce
Expected behavior
Actual behavior
Craft CMS version
3.7.65.2
PHP version
7.4.33
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
-