I have a bunch of user ids and need to get the result set to be ordered in 
the explicit ordering of the IN clauses argument, for example..

MATCH (usr:PERSON) WHERE usr.id IN ["45", "2", "8", "32", "66", "201", "4"] 
COLLECT(usr)

Neo4j currently is returning the user collection is random order, but i 
need it returned in the same order as in 45, 2, 8... 4.

maybe we need something like this..?

MATCH (usr:PERSON) WHERE usr.id IN ["45", "2", "8", "32", "66", "201", "4"] 
COLLECT(usr) ORDER BY IN

Unless i am not aware of another way to do this... ?
Those values in the IN statement is already ranked by my app and I want to 
preserve this ordering.

Thanks,
Einthusan

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to