Vinelab / NeoEloquent

The Neo4j OGM for Laravel
MIT License
633 stars 197 forks source link

Order result with case insensitively #316

Closed DesaBL closed 3 years ago

DesaBL commented 5 years ago

I didn't find the way to sort results (by string value) but with case insensitivity. I will use StackOverflow example to explain this:

I have following data

'user' node- with 'name' property having following values

abc xyz XYZ ABC I need result like this, When i order it by ascending order.

abc ABC
xyz
XYZ my query is

MATCH (u:user) return u order by u.name ASC; But The result is

abc xyz ABC XYZ

If this is not implemented, I'm willing to implement this and create PR with the solution

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.