<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:37:49 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[DOCS-52] Undocumented distinct sorting no longer in 1.8</title>
                <link>https://jira.mongodb.org/browse/DOCS-52</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;Apparently there was an undocumented feature of distinct in 1.6 where values would be returned binary sorted.  This behavior has disappeared in 1.8.&lt;/p&gt;

&lt;p&gt;You could count it as a regression but I see it more of a documentation issue. IMO it&apos;d be better to leave sorting to the client (since binary sorting might not even be the desired behavior) or something to be done explicitly.  We were only bitten by this bug because nowhere in the changelog/release notes does it appear to be mentioned that this behavior changed.&lt;/p&gt;

&lt;p&gt;====TEST CASE=======&lt;br/&gt;
MongoDB shell version: 1.6.5&lt;br/&gt;
connecting to: test&lt;br/&gt;
&amp;gt; use test;&lt;br/&gt;
switched to db test&lt;br/&gt;
&amp;gt; db.test.insert(&lt;/p&gt;
{&apos;id&apos;:1, &apos;value&apos;:&apos;blah&apos;}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; db.test.insert(&lt;/p&gt;
{&apos;id&apos;:2, &apos;value&apos;:&apos;FOO&apos;}
&lt;p&gt;) &lt;br/&gt;
&amp;gt; db.test.insert(&lt;/p&gt;
{&apos;id&apos;:3, &apos;value&apos;:&apos;BAR&apos;}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; db.test.insert(&lt;/p&gt;
{&apos;id&apos;:4, &apos;value&apos;:&apos;bar&apos;}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; db.test.insert(&lt;/p&gt;
{&apos;id&apos;:5, &apos;value&apos;:&apos;foo&apos;}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; db.test.distinct(&apos;value&apos;);&lt;br/&gt;
[ &quot;BAR&quot;, &quot;FOO&quot;, &quot;bar&quot;, &quot;blah&quot;, &quot;foo&quot; ]&lt;br/&gt;
&amp;gt;&lt;/p&gt;

&lt;p&gt;MongoDB shell version: 1.8.0&lt;br/&gt;
connecting to: test&lt;br/&gt;
&amp;gt; use test;&lt;br/&gt;
switched to db test&lt;br/&gt;
&amp;gt; db.test.insert(&lt;/p&gt;
{&apos;id&apos;:1, &apos;value&apos;:&apos;blah&apos;}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; db.test.insert(&lt;/p&gt;
{&apos;id&apos;:2, &apos;value&apos;:&apos;FOO&apos;}
&lt;p&gt;) &lt;br/&gt;
&amp;gt; db.test.insert(&lt;/p&gt;
{&apos;id&apos;:3, &apos;value&apos;:&apos;BAR&apos;}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; db.test.insert(&lt;/p&gt;
{&apos;id&apos;:4, &apos;value&apos;:&apos;bar&apos;}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; db.test.insert(&lt;/p&gt;
{&apos;id&apos;:5, &apos;value&apos;:&apos;foo&apos;}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; db.test.distinct(&apos;value&apos;);&lt;br/&gt;
[ &quot;blah&quot;, &quot;FOO&quot;, &quot;BAR&quot;, &quot;bar&quot;, &quot;foo&quot; ]&lt;br/&gt;
&amp;gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="15273">DOCS-52</key>
            <summary>Undocumented distinct sorting no longer in 1.8</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="4">Incomplete</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="sirpengi">shu zOMG chen</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Mar 2011 21:27:27 +0000</created>
                <updated>Mon, 1 Oct 2012 21:17:15 +0000</updated>
                            <resolved>Mon, 1 Oct 2012 21:17:15 +0000</resolved>
                                                                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="170089" author="samk" created="Mon, 1 Oct 2012 21:17:15 +0000"  >&lt;p&gt;I don&apos;t think it makes sense to document behaviors of pre-1.8 MongoDB at this point in the development of the project. Sorry that we didn&apos;t get to this sooner. &lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 1 Oct 2012 21:17:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 20 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>jess.mokrzecki@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 20 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>sam.kleinman</customfieldvalue>
            <customfieldvalue>sirpengi</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrsj6n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrho87:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>16737</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrykqv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                </customfields>
    </item>
</channel>
</rss>