cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

apoc.coll.sort alphanumeric

Hi,

RETURN apoc.coll.sort(["test1", "test10", "test2"]) AS output;
returns
["test1", "test10", "test2"]
is there a way to sort alphanumerically to get an output like
["test1", "test2", "test10"]
2 REPLIES 2

Not the I am aware of.  As a work around, are you able to define your strings as 'test01', 'test10', and test'02' instead? 

Thanks for the suggestion, 0 padding is something I'd considered but wanted to avoid if possible

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

All the sessions of the conference are now available online