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"]
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"]
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