Tobias Ivarsson: > A note to my fellow Neo developers: > It could be a good idea to create some sorted structure that keeps nodes > sorted based on a String, since this is quite a common use case. >
A sorted structure seems like a really good idea to me. But i'd rather like to see something more generic, where the user provides a Comparator<Node> implementation. One reason for this is that Strings can be sorted in different ways, using different Locales, case in/sensitive and so on. If there is a clear benefit from it, some common use cases could be covered by prebuilt Comparators. Or code snippets in the documentation (would be my choice) laying out common use cases. And the user could also do so much more fun things with a Comparator to play with :-) /anders _______________________________________________ Neo mailing list User@lists.neo4j.org https://lists.neo4j.org/mailman/listinfo/user