<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Sort 0 -_time in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sort-0-time/m-p/187244#M53950</link>
    <description>&lt;P&gt;Hi, I wonder whether someone could help me please.&lt;/P&gt;

&lt;P&gt;I've inherited a search with the line &lt;CODE&gt;sort 0 detail.ref,-_time&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;From  the Splunk documentation, I know that &lt;CODE&gt;sort 1 -_time&lt;/CODE&gt; means 'return the more recent event', but could someone explain to me please what the zero means. My thought was that the line meant 'don't return the most recent event'.&lt;/P&gt;

&lt;P&gt;Could someone possibly confirm for me please whether this assumption is correct.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
    <pubDate>Thu, 27 Aug 2015 06:34:11 GMT</pubDate>
    <dc:creator>IRHM73</dc:creator>
    <dc:date>2015-08-27T06:34:11Z</dc:date>
    <item>
      <title>Sort 0 -_time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-0-time/m-p/187244#M53950</link>
      <description>&lt;P&gt;Hi, I wonder whether someone could help me please.&lt;/P&gt;

&lt;P&gt;I've inherited a search with the line &lt;CODE&gt;sort 0 detail.ref,-_time&lt;/CODE&gt;.&lt;/P&gt;

&lt;P&gt;From  the Splunk documentation, I know that &lt;CODE&gt;sort 1 -_time&lt;/CODE&gt; means 'return the more recent event', but could someone explain to me please what the zero means. My thought was that the line meant 'don't return the most recent event'.&lt;/P&gt;

&lt;P&gt;Could someone possibly confirm for me please whether this assumption is correct.&lt;/P&gt;

&lt;P&gt;Many thanks and kind regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 06:34:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-0-time/m-p/187244#M53950</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-08-27T06:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sort 0 -_time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-0-time/m-p/187245#M53951</link>
      <description>&lt;P&gt;sort 0 means no limit and returns all result&lt;BR /&gt;
Please read the docs&lt;BR /&gt;
&lt;A href="http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Sort"&gt;http://docs.splunk.com/Documentation/Splunk/6.2.1/SearchReference/Sort&lt;/A&gt;&lt;/P&gt;

&lt;P&gt;If you want the oldest result, you may try&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sort 1 _time
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;without the minus sign, it will sort in ascending order&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 07:14:23 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-0-time/m-p/187245#M53951</guid>
      <dc:creator>chanmi2</dc:creator>
      <dc:date>2015-08-27T07:14:23Z</dc:date>
    </item>
    <item>
      <title>Re: Sort 0 -_time</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-0-time/m-p/187246#M53952</link>
      <description>&lt;P&gt;@chanmi2 Thank you very much for taking the time to reply to my post and for the guidance.&lt;/P&gt;

&lt;P&gt;Kind Regards&lt;/P&gt;

&lt;P&gt;Chris&lt;/P&gt;</description>
      <pubDate>Thu, 27 Aug 2015 07:18:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-0-time/m-p/187246#M53952</guid>
      <dc:creator>IRHM73</dc:creator>
      <dc:date>2015-08-27T07:18:47Z</dc:date>
    </item>
  </channel>
</rss>

