<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:56:23 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>[JAVA-2121] Sort</title>
                <link>https://jira.mongodb.org/browse/JAVA-2121</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;i have collection like this&lt;/p&gt;
{&quot;index&quot;:&quot;1.1.1&quot;}
{&quot;index&quot;:&quot;1.1.2&quot;}
&lt;p&gt;.......................&lt;/p&gt;
{&quot;index&quot;:&quot;1.1.9&quot;}
{&quot;index&quot;:&quot;1.1.10&quot;}
{&quot;index&quot;:&quot;1.1.1.1&quot;}

&lt;p&gt;and i want to fetch 1.1.1  to 1.1.&lt;br class=&quot;atl-forced-newline&quot; /&gt;d+$ results in DESC order,&lt;br/&gt;
so for this regex will be ^1.1&lt;span class=&quot;error&quot;&gt;&amp;#91;.&amp;#93;&lt;/span&gt;&lt;br class=&quot;atl-forced-newline&quot; /&gt;d+$, and from this i getting correct data,&lt;br/&gt;
but after DESC ordering applied iam getting all data correct but its order is not correct i&apos;m getting :&lt;/p&gt;
{&quot;index&quot;:&quot;1.1.1&quot;}
{&quot;index&quot;:&quot;1.1.10&quot;}
{&quot;index&quot;:&quot;1.1.2&quot;}
&lt;p&gt;.......................&lt;/p&gt;
{&quot;index&quot;:&quot;1.1.9&quot;} 

&lt;p&gt;So why this is happening ? according to DESC it has to show  me 1.1.10 after 1.1.9.&lt;/p&gt;

&lt;p&gt;please help me if i can do this with methods substring and last indexof .&lt;/p&gt;</description>
                <environment>windows 7, 64 bit</environment>
        <key id="267825">JAVA-2121</key>
            <summary>Sort</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="sorav.sahu@gmail.com">sorabh sahu</reporter>
                        <labels>
                    </labels>
                <created>Wed, 24 Feb 2016 21:15:56 +0000</created>
                <updated>Wed, 11 Sep 2019 19:09:21 +0000</updated>
                            <resolved>Wed, 24 Feb 2016 21:21:15 +0000</resolved>
                                    <version>3.2.2</version>
                                                    <component>Query Operations</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1183710" author="jeff.yemin" created="Wed, 24 Feb 2016 21:21:15 +0000"  >&lt;p&gt;The JAVA project is intended for reporting bugs against or requesting new features in the MongoDB Java driver.  Please direct general usage questions about the driver or about MongoDB to our &lt;a href=&quot;https://groups.google.com/forum/#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;user forum&lt;/a&gt; or to Stack Overflow.&lt;/p&gt;


&lt;p&gt;Regards,&lt;br/&gt;
Jeff&lt;/p&gt;</comment>
                            <comment id="1183708" author="sorav.sahu@gmail.com" created="Wed, 24 Feb 2016 21:20:01 +0000"  >&lt;p&gt;REFORMAT&lt;br/&gt;
i have collection like this&lt;/p&gt;
{&quot;index&quot;:&quot;1.1.1&quot;}
&lt;p&gt; &lt;/p&gt;
{&quot;index&quot;:&quot;1.1.2&quot;}
&lt;p&gt;.................&lt;/p&gt;
{&quot;index&quot;:&quot;1.1.9&quot;}
&lt;p&gt; &lt;/p&gt;
{&quot;index&quot;:&quot;1.1.10&quot;}
&lt;p&gt; &lt;/p&gt;
{&quot;index&quot;:&quot;1.1.1.1&quot;}
&lt;p&gt; .&lt;/p&gt;

&lt;p&gt;and i want to fetch 1.1.1 to 1.1.d+$ results in DESC order.   &lt;br/&gt;
so for this regex will be ^1.1&lt;span class=&quot;error&quot;&gt;&amp;#91;.&amp;#93;&lt;/span&gt; d+$ .&lt;br/&gt;
and from this i getting correct data,&lt;br/&gt;
but after DESC ordering applied iam getting all data correct but its order is not correct i&apos;m getting :&lt;/p&gt;
{&quot;index&quot;:&quot;1.1.1&quot;}
&lt;p&gt; &lt;/p&gt;
{&quot;index&quot;:&quot;1.1.10&quot;}
&lt;p&gt; &lt;/p&gt;
{&quot;index&quot;:&quot;1.1.2&quot;}
&lt;p&gt;................&lt;/p&gt;
{&quot;index&quot;:&quot;1.1.9&quot;}
&lt;p&gt; .&lt;/p&gt;

&lt;p&gt;So why this is happening ? according to DESC it has to show me 1.1.10 after 1.1.9.&lt;/p&gt;

&lt;p&gt;please help me if i can do this with methods substring and last indexof .&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsiqpz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>