<?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 Modify sort's behavior? in Splunk Search</title>
    <link>https://community.splunk.com/t5/Splunk-Search/Modify-sort-s-behavior/m-p/105976#M27540</link>
    <description>&lt;P&gt;I have data that is using a different charset.&lt;/P&gt;

&lt;P&gt;When displaying this data in a simple table, Splunk parses it as string and applies same rules when sorting it, by bytes.&lt;/P&gt;

&lt;P&gt;This causes the text to be sorted like this:&lt;/P&gt;

&lt;P&gt;A, B, C .... X, Y, Z, local_char_1, local_char_2 etc.&lt;/P&gt;

&lt;P&gt;That's correct when just checking bytes (unicode), however our alphabet is different. Is it possible to modify the sort command's behavior so it sorts text like this:&lt;/P&gt;

&lt;P&gt;A, B, C, local_char_1, D, E ....&lt;/P&gt;</description>
    <pubDate>Mon, 28 Sep 2020 11:36:41 GMT</pubDate>
    <dc:creator>bojanz</dc:creator>
    <dc:date>2020-09-28T11:36:41Z</dc:date>
    <item>
      <title>Modify sort's behavior?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Modify-sort-s-behavior/m-p/105976#M27540</link>
      <description>&lt;P&gt;I have data that is using a different charset.&lt;/P&gt;

&lt;P&gt;When displaying this data in a simple table, Splunk parses it as string and applies same rules when sorting it, by bytes.&lt;/P&gt;

&lt;P&gt;This causes the text to be sorted like this:&lt;/P&gt;

&lt;P&gt;A, B, C .... X, Y, Z, local_char_1, local_char_2 etc.&lt;/P&gt;

&lt;P&gt;That's correct when just checking bytes (unicode), however our alphabet is different. Is it possible to modify the sort command's behavior so it sorts text like this:&lt;/P&gt;

&lt;P&gt;A, B, C, local_char_1, D, E ....&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 11:36:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Modify-sort-s-behavior/m-p/105976#M27540</guid>
      <dc:creator>bojanz</dc:creator>
      <dc:date>2020-09-28T11:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sort's behavior?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Modify-sort-s-behavior/m-p/105977#M27541</link>
      <description>&lt;P&gt;Can you use the fields command after table to mandate the order of the fields?&lt;/P&gt;</description>
      <pubDate>Sun, 01 Apr 2012 22:38:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Modify-sort-s-behavior/m-p/105977#M27541</guid>
      <dc:creator>araitz</dc:creator>
      <dc:date>2012-04-01T22:38:47Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sort's behavior?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Modify-sort-s-behavior/m-p/105978#M27542</link>
      <description>&lt;P&gt;To use a fancy word, you're wanting to change the "collating sequence" for sort.  As far as I know this is not possible directly out of the box.  This type of internationalization support could make a good enhancement request.  There's a chance that the collating sequence is governed by the language settings in Splunk, but I've not tested.&lt;/P&gt;

&lt;P&gt;In a worst case, you could implement your own sort algorithm using a custom search command.  Then you are free to define whatever collating sequence you require.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Apr 2012 23:31:53 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Modify-sort-s-behavior/m-p/105978#M27542</guid>
      <dc:creator>dwaddle</dc:creator>
      <dc:date>2012-04-01T23:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sort's behavior?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Modify-sort-s-behavior/m-p/105979#M27543</link>
      <description>&lt;P&gt;Thanks - does that mean I just create a new command and use it like this:&lt;/P&gt;

&lt;P&gt;&lt;CODE&gt;old search | mysearch&lt;/CODE&gt;&lt;/P&gt;

&lt;P&gt;How will this work when the user clicks on the sort button in the table? Generally I have problems only with text fields (due to the character set, obviously), with numbers it (of course) works ok.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2012 15:10:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Modify-sort-s-behavior/m-p/105979#M27543</guid>
      <dc:creator>bojanz</dc:creator>
      <dc:date>2012-04-02T15:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Modify sort's behavior?</title>
      <link>https://community.splunk.com/t5/Splunk-Search/Modify-sort-s-behavior/m-p/105980#M27544</link>
      <description>&lt;P&gt;The issue is that I want to allow the user to sort as he/she wants in the interface, by any column that is displayed in the table. I can maybe use a hidden variable that is populated by my external script but that will work for first display only, as far as I understand.&lt;/P&gt;</description>
      <pubDate>Mon, 02 Apr 2012 15:12:13 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-Search/Modify-sort-s-behavior/m-p/105980#M27544</guid>
      <dc:creator>bojanz</dc:creator>
      <dc:date>2012-04-02T15:12:13Z</dc:date>
    </item>
  </channel>
</rss>

