<?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: Sort values of a field with double digit in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Sort-values-of-a-field-with-double-digit/m-p/132919#M36294</link>
    <description>&lt;P&gt;Oh, extract just the numbers.... okay I will test this soon and get back. Probably will work.&lt;/P&gt;</description>
    <pubDate>Wed, 16 Apr 2014 21:02:40 GMT</pubDate>
    <dc:creator>bleung93</dc:creator>
    <dc:date>2014-04-16T21:02:40Z</dc:date>
    <item>
      <title>Sort values of a field with double digit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-values-of-a-field-with-double-digit/m-p/132917#M36292</link>
      <description>&lt;P&gt;How do I sort this single field properly? I already tried | sort - field_name. I tried creating a rex and then sorting that field, but no changes.&lt;/P&gt;

&lt;P&gt;field_name&lt;/P&gt;

&lt;P&gt;value_1_asdfasdfasdf&lt;BR /&gt;
value_10_asdfasdfasdf&lt;BR /&gt;
Value_11_asdfasdfasdf&lt;BR /&gt;
Value_12_asdfasdfasdf&lt;BR /&gt;
value_2_asdfasdfasdf&lt;BR /&gt;
value_3_asdfasdfasdf&lt;BR /&gt;
value_4_asdfasdfasdf&lt;BR /&gt;
value_5_asdfasdfasdf&lt;BR /&gt;
value_6_asdfasdfasdf&lt;BR /&gt;
value_7_asdfasdfasdf&lt;BR /&gt;
value_8_asdfasdfasdf&lt;BR /&gt;
value_9_asdfasdfasdf&lt;/P&gt;

&lt;P&gt;I want the results as follows&lt;/P&gt;

&lt;P&gt;value_1_asdfasdfasdf&lt;BR /&gt;
value_2_asdfasdfasdf&lt;BR /&gt;
value_3_asdfasdfasdf&lt;BR /&gt;
value_4_asdfasdfasdf&lt;BR /&gt;
value_5_asdfasdfasdf&lt;BR /&gt;
value_6_asdfasdfasdf&lt;BR /&gt;
value_7_asdfasdfasdf&lt;BR /&gt;
value_8_asdfasdfasdf&lt;BR /&gt;
value_9_asdfasdfasdf&lt;BR /&gt;
value_10_asdfasdfasdf&lt;BR /&gt;
value_11_asdfasdfasdf&lt;BR /&gt;
value_12_asdfasdfasdf&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 16:23:45 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-values-of-a-field-with-double-digit/m-p/132917#M36292</guid>
      <dc:creator>bleung93</dc:creator>
      <dc:date>2020-09-28T16:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Sort values of a field with double digit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-values-of-a-field-with-double-digit/m-p/132918#M36293</link>
      <description>&lt;P&gt;Try to extract all the digits from the data and then  sort it.&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;....|rex field="field_name" "_(?P&amp;lt;dummy&amp;gt;[\d]+)_"|table field_name,dummy|sort +dummy
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;OR&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;....|eval dummy=replace(field_name,"\D","")|table fild_name,dummy|sort dummy
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 04:30:11 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-values-of-a-field-with-double-digit/m-p/132918#M36293</guid>
      <dc:creator>linu1988</dc:creator>
      <dc:date>2014-04-16T04:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sort values of a field with double digit</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Sort-values-of-a-field-with-double-digit/m-p/132919#M36294</link>
      <description>&lt;P&gt;Oh, extract just the numbers.... okay I will test this soon and get back. Probably will work.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Apr 2014 21:02:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Sort-values-of-a-field-with-double-digit/m-p/132919#M36294</guid>
      <dc:creator>bleung93</dc:creator>
      <dc:date>2014-04-16T21:02:40Z</dc:date>
    </item>
  </channel>
</rss>

