<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:16 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-431] the find() method of GridFS should allow specification of sort criteria</title>
                <link>https://jira.mongodb.org/browse/JAVA-431</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;the method:&lt;br/&gt;
 public List&amp;lt;GridFSDBFile&amp;gt; find(DBObject query)&lt;br/&gt;
of GridFS can&apos;t be sorted now.&lt;br/&gt;
It will be great if I can get the list order by some other attribute, not only filename.&lt;/p&gt;</description>
                <environment></environment>
        <key id="21984">JAVA-431</key>
            <summary>the find() method of GridFS should allow specification of sort criteria</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="xbwen">Frank Wen</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Sep 2011 05:42:27 +0000</created>
                <updated>Tue, 19 Mar 2013 14:48:30 +0000</updated>
                            <resolved>Wed, 23 Jan 2013 02:24:52 +0000</resolved>
                                                    <fixVersion>2.11.0</fixVersion>
                                    <component>GridFS</component>
                                        <votes>2</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="247173" author="jeff.yemin" created="Wed, 23 Jan 2013 02:24:52 +0000"  >&lt;p&gt;Merged &lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/88&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/88&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="247170" author="auto" created="Wed, 23 Jan 2013 02:22:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-23T02:22:26Z&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: Merge pull request #88 from phil-schneider/&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-431&quot; title=&quot;the find() method of GridFS should allow specification of sort criteria&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-431&quot;&gt;&lt;del&gt;JAVA-431&lt;/del&gt;&lt;/a&gt;-GridFS-Sorting&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-431&quot; title=&quot;the find() method of GridFS should allow specification of sort criteria&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-431&quot;&gt;&lt;del&gt;JAVA-431&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-703&quot; title=&quot;GridFS List&amp;lt;GridFSDBFile&amp;gt; find( DBObject query ,...) should close cursor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-703&quot;&gt;&lt;del&gt;JAVA-703&lt;/del&gt;&lt;/a&gt;: the find() method of GridFS should can be sorted.  Cursor should be closed in a finally block.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/8c6562a85421647f63e168bd4d62452e1e336ce7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/8c6562a85421647f63e168bd4d62452e1e336ce7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="247169" author="auto" created="Wed, 23 Jan 2013 02:22:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-23T02:22:26Z&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: Merge pull request #88 from phil-schneider/&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-431&quot; title=&quot;the find() method of GridFS should allow specification of sort criteria&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-431&quot;&gt;&lt;del&gt;JAVA-431&lt;/del&gt;&lt;/a&gt;-GridFS-Sorting&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-431&quot; title=&quot;the find() method of GridFS should allow specification of sort criteria&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-431&quot;&gt;&lt;del&gt;JAVA-431&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-703&quot; title=&quot;GridFS List&amp;lt;GridFSDBFile&amp;gt; find( DBObject query ,...) should close cursor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-703&quot;&gt;&lt;del&gt;JAVA-703&lt;/del&gt;&lt;/a&gt;: the find() method of GridFS should can be sorted.  Cursor should be closed in a finally block.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/8c6562a85421647f63e168bd4d62452e1e336ce7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/8c6562a85421647f63e168bd4d62452e1e336ce7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="247168" author="auto" created="Wed, 23 Jan 2013 02:22:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-01-16T17:48:53Z&apos;, u&apos;name&apos;: u&apos;Philipp&apos;, u&apos;email&apos;: u&apos;github-commit@phil-schneider.de&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-431&quot; title=&quot;the find() method of GridFS should allow specification of sort criteria&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-431&quot;&gt;&lt;del&gt;JAVA-431&lt;/del&gt;&lt;/a&gt; the find() method of GridFS should can be sorted&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;added test for both methods for sorting&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/af4d03cf0455c45c67d8412f56db254b343eb286&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/af4d03cf0455c45c67d8412f56db254b343eb286&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="247166" author="auto" created="Wed, 23 Jan 2013 02:22:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-11-28T15:17:59Z&apos;, u&apos;email&apos;: u&apos;github-commit@phil-schneider.de&apos;, u&apos;name&apos;: u&apos;Philipp&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-431&quot; title=&quot;the find() method of GridFS should allow specification of sort criteria&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-431&quot;&gt;&lt;del&gt;JAVA-431&lt;/del&gt;&lt;/a&gt; the find() method of GridFS should can be sorted&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-703&quot; title=&quot;GridFS List&amp;lt;GridFSDBFile&amp;gt; find( DBObject query ,...) should close cursor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-703&quot;&gt;&lt;del&gt;JAVA-703&lt;/del&gt;&lt;/a&gt; GridFS List&amp;lt;GridFSDBFile&amp;gt; find( DBObject query ,...) should close cursor&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;surrounded the cursor with a try finally block&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/b9fd84288cbe17238423a3a95dfe065a4e6a7fed&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/b9fd84288cbe17238423a3a95dfe065a4e6a7fed&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="247165" author="auto" created="Wed, 23 Jan 2013 02:22:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-11-28T14:59:31Z&apos;, u&apos;email&apos;: u&apos;github-commit@phil-schneider.de&apos;, u&apos;name&apos;: u&apos;Philipp&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-431&quot; title=&quot;the find() method of GridFS should allow specification of sort criteria&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-431&quot;&gt;&lt;del&gt;JAVA-431&lt;/del&gt;&lt;/a&gt; the find() method of GridFS should can be sorted&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;added new methods for providing an optional sort parameter&lt;/li&gt;
	&lt;li&gt;changed the _fix from private to protected&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/4be2a3edddda02a85e261d52b33eb86845c05c6b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/4be2a3edddda02a85e261d52b33eb86845c05c6b&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="241638" author="phil-schneider" created="Wed, 16 Jan 2013 17:55:30 +0000"  >&lt;p&gt;I added the requested test in the github pullrequest.&lt;/p&gt;</comment>
                            <comment id="212600" author="phil-schneider" created="Tue, 11 Dec 2012 23:12:06 +0000"  >&lt;p&gt;Any chance of a fix version here?&lt;br/&gt;
I mean the solution is already there, you just have to pull &amp;amp; check it.&lt;/p&gt;</comment>
                            <comment id="201206" author="phil-schneider" created="Wed, 28 Nov 2012 15:02:36 +0000"  >&lt;p&gt;I provided a simple solution for this issue:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/pull/88&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/pull/88&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;There is a depending issue on this:&lt;br/&gt;
&lt;a href=&quot;https://jira.springsource.org/browse/DATAMONGO-534&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://jira.springsource.org/browse/DATAMONGO-534&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It would be nice if you could include this in one of the next releases. Thanks&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|hrhbpj:</customfieldvalue>

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