[ 
https://issues.apache.org/jira/browse/SLING-7524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16383836#comment-16383836
 ] 

Jason E Bailey commented on SLING-7524:
---------------------------------------

[~tomek.rekawek] I like the laziness as well :)  the jQuery equivalent doesn't 
do ordering any more as of 1.4 it just returns unique items in the order that 
they were seen. So I'm seeing this as similar to the distinct method in the 
Streams api. I've got a solution for this that works in the same manner as the 
distinct method. I'll create a PR for you to take a look at

> Sling Query - unique function does not not remove all duplicates
> ----------------------------------------------------------------
>
>                 Key: SLING-7524
>                 URL: https://issues.apache.org/jira/browse/SLING-7524
>             Project: Sling
>          Issue Type: Improvement
>          Components: Sling Query
>            Reporter: Jason E Bailey
>            Assignee: Jason E Bailey
>            Priority: Major
>
> the function for unique does not match the contract a unique function usually 
> provides including JQuery, rather it's providing a sequential deduplicator.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to