Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
07-01-2020 06:18 AM
07-01-2020 08:50 AM
Interesting question, there is no easy way to sort a map by value. APOC only supports it by key.
See http://neo4j-contrib.github.io/neo4j-apoc-procedures/3.5/utilities/map-functions/ for more info.
What is your use-case? With a bit more context a different way of getting there might present itself.
07-01-2020 05:31 PM
You could do something like:
WITH {umakanth:10,sai:20,ravi:5,raju:25} as props
UNWIND keys(props) as key
WITH key, props[key] as value
ORDER BY value DESC
RETURN key, value
LIMIT 2
All the sessions of the conference are now available online