Closed eugenethered closed 3 months ago
There's an issue when collection does not have a property when performing orderBy.
For example: Let's say you store multiple entities... as cats.
If you use the existing code and try orderBy('born') it will explodeš„ because the property "born" for ginger does not exist.
The fix Essentially it just does a simple check that both compared entities, both have the desired property.
Hope this helps.
I've tested here, confirmed it is working, going to release this on next release!
There's an issue when collection does not have a property when performing orderBy.
For example: Let's say you store multiple entities... as cats.
If you use the existing code and try orderBy('born') it will explodeš„ because the property "born" for ginger does not exist.
The fix Essentially it just does a simple check that both compared entities, both have the desired property.
Hope this helps.