<?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 Re: Simple &amp;quot;sort&amp;quot; question in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95755#M24719</link>
    <description>&lt;P&gt;I think you mean  &lt;/P&gt;

&lt;P&gt;| sort IP&lt;/P&gt;</description>
    <pubDate>Tue, 16 Apr 2013 10:19:06 GMT</pubDate>
    <dc:creator>BobM</dc:creator>
    <dc:date>2013-04-16T10:19:06Z</dc:date>
    <item>
      <title>Simple "sort" question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95753#M24717</link>
      <description>&lt;P&gt;Hi, I'm new on Splunk and I need to understand how to do this simple sort:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IP               Value

192.168.0.1        1  
192.168.0.2        5  
192.168.0.2        3  
192.168.0.1        2  
192.168.0.1        4  
192.168.0.2        7  
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;and I need to obtain this:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;IP                         Value

192.168.0.1                  1  
192.168.0.1                  2  
192.168.0.1                  4  
192.168.0.2                  3  
192.168.0.2                  5  
192.168.0.2                  7 
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Is there a way to do this withous using multivalue fields? It's like a sort Value with "by" clause.&lt;/P&gt;

&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2013 09:04:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95753#M24717</guid>
      <dc:creator>betto86</dc:creator>
      <dc:date>2013-04-16T09:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: Simple "sort" question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95754#M24718</link>
      <description>&lt;P&gt;Use the sort command? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;... | sort Value
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;&lt;A href="http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/Sort"&gt;http://docs.splunk.com/Documentation/Splunk/5.0.2/SearchReference/Sort&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2013 09:08:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95754#M24718</guid>
      <dc:creator>Ayn</dc:creator>
      <dc:date>2013-04-16T09:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: Simple "sort" question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95755#M24719</link>
      <description>&lt;P&gt;I think you mean  &lt;/P&gt;

&lt;P&gt;| sort IP&lt;/P&gt;</description>
      <pubDate>Tue, 16 Apr 2013 10:19:06 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95755#M24719</guid>
      <dc:creator>BobM</dc:creator>
      <dc:date>2013-04-16T10:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Simple "sort" question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95756#M24720</link>
      <description>&lt;P&gt;works!  thx.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 15:37:33 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95756#M24720</guid>
      <dc:creator>Steve_modeler</dc:creator>
      <dc:date>2016-10-08T15:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Simple "sort" question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95757#M24721</link>
      <description>&lt;P&gt;Please accept the answer.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Oct 2016 19:44:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95757#M24721</guid>
      <dc:creator>richgalloway</dc:creator>
      <dc:date>2016-10-08T19:44:56Z</dc:date>
    </item>
    <item>
      <title>Re: Simple "sort" question</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95758#M24722</link>
      <description>&lt;P&gt;sort is the correct answer as mentioned by others but since expected output has IPs as well as Values sorted in it hence it actually should be:&lt;/P&gt;

&lt;PRE&gt;
yourBaseSearch
| sort by IP, Value
&lt;/PRE&gt;

&lt;P&gt;OR without by&lt;BR /&gt;
&lt;PRE&gt;&lt;BR /&gt;
yourBaseSearch&lt;BR /&gt;
| sort IP, Value&lt;BR /&gt;
&lt;/PRE&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 09 Oct 2016 01:11:56 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Simple-quot-sort-quot-question/m-p/95758#M24722</guid>
      <dc:creator>gokadroid</dc:creator>
      <dc:date>2016-10-09T01:11:56Z</dc:date>
    </item>
  </channel>
</rss>

