You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Benjamin Reed (JIRA)" <ji...@apache.org> on 2008/06/11 16:36:45 UTC
[jira] Commented: (ZOOKEEPER-44) DataTree does not use natural sort
for getChildren
[ https://issues.apache.org/jira/browse/ZOOKEEPER-44?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604235#action_12604235 ]
Benjamin Reed commented on ZOOKEEPER-44:
----------------------------------------
Actually we have been meaning to remove the sort. It causes an unnecessary burden on the server. If we really want things sorted, we should do it in the client library. The question is: do we really want things sorted? Especially in Java it is easy enough for the user to sort the list themself if needed.
> DataTree does not use natural sort for getChildren
> --------------------------------------------------
>
> Key: ZOOKEEPER-44
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-44
> Project: Zookeeper
> Issue Type: Improvement
> Components: server
> Affects Versions: 3.0.0
> Reporter: Stu Hood
> Priority: Minor
>
> DataTree.getChildren() performs Collection.sort() on the list of children before returning it, but Java's default comparator for Strings will sort 'lock-20' before 'lock-3' for instance.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.