History of Idiom 28 > diff from v49 to v50
Edit summary for version 50 by ancarda:
[PHP] Format code snippet to PSR-12, use single quotes for higher performance
[PHP] Format code snippet to PSR-12, use single quotes for higher performance
↷
Version 49
2019-09-26, 19:04:40
Version 50
2019-09-27, 09:52:33
Idiom #28 Sort by a property
Sort elements of array-like collection items in ascending order of x.p, where p is a field of the type Item of the objects in items.
Idiom #28 Sort by a property
Sort elements of array-like collection items in ascending order of x.p, where p is a field of the type Item of the objects in items.
Comments bubble
Comments bubble
Use triple equals ($a->p _=== $b->p) for higher performance if you know the types will be identical.