Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Inconsistent ordering in apoc.coll.sort* #797
There is an inconsistency in the default way the
I think they should all be ASC, as the default is.
Fix wise - it's pretty simple, the problem is - it would be a breaking change, as anyone who is currently using
If it's something that should be fixed, let me know and I'll get on it, but I won't work on it unless it's decided it's a 'goer'. :)
added a commit
May 2, 2018
From what I can see - your memory serves you correctly - So.
Given "99% of cases are descending..." should
Something to consider (in my view) is whether APOC would want a 'DESC' order for the other sorts - I know you can just reverse them, but that seems a bit cludgy..
If I considered doing the latter option of adding a DESC option - I would add a 'properties' thing like the other methods have, so:
Which I think is clearer and doesn't rely on string parsing.