History of Idiom 28 > diff from v50 to v51
Edit summary for version 51 by ancarda:
[PHP] Fix explanation box (bad underscore)
[PHP] Fix explanation box (bad underscore)
↷
Version 50
2019-09-27, 09:52:33
Version 51
2019-09-27, 09:52:52
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
Use triple equals ($a->p _=== $b->p) for higher performance if you know the types will be identical.
Comments bubble
Use triple equals ($a->p === $b->p) for higher performance if you know the types will be identical.