<?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: With which algorithm works the SORT statement? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035385#M718125</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply. One Question is left. What algorithm is used e.g. Bubble Sort or Quick Sort or whatever! Or is that one of walldorf secrets!? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 30 Oct 2007 14:47:21 GMT</pubDate>
    <dc:creator>christian_breitenbach2</dc:creator>
    <dc:date>2007-10-30T14:47:21Z</dc:date>
    <item>
      <title>With which algorithm works the SORT statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035381#M718121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can somebody tell me how the SORT statement is working? Or show me a chapter in the documentation where its described.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And what is different to SORT stable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 14:08:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035381#M718121</guid>
      <dc:creator>christian_breitenbach2</dc:creator>
      <dc:date>2007-10-30T14:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: With which algorithm works the SORT statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035382#M718122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, if you do not specify STABLE, then when you sort by a particular field, the other fields that you are not sorting by may be in a different order than they were before the sort statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 14:14:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035382#M718122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T14:14:03Z</dc:date>
    </item>
    <item>
      <title>Re: With which algorithm works the SORT statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035383#M718123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Perez C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 14:17:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035383#M718123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T14:17:15Z</dc:date>
    </item>
    <item>
      <title>Re: With which algorithm works the SORT statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035384#M718124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can sort a standard or hashed table in a program. To sort a table by its key, use the statement&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SORT &amp;lt;itab&amp;gt; [ASCENDING|DESCENDING] [AS TEXT] [STABLE].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement sorts the internal table &amp;lt;itab&amp;gt; in ascending order by its key. The statement always applies to the table itself, not to the header line. The sort order depends on the sequence of the standard key fields in the internal table. The default key is made up of the non-numeric fields of the table line in the order in which they occur. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can specify the direction of the sort using the additions ASCENDING and DESCENDING. The default is ascending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The larger the sort key, the more time the system needs to sort the table. If the sort key contains an internal table, the sorting process may be slowed down considerably.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot sort a sorted table using the SORT statement. The system always maintains these tables automatically by their sort order. If an internal table is statically recognizable as a sorted table, the SORT statement causes a syntax error. If the table is a generic sorted table, the SORT statement causes a runtime error if the sort key is not the same as an extract of the beginning of the table key, you sort in descending order, or use the AS TEXT addition. In other words, the SORT statement is only allowed for generic internal tables, if it does not violate the internal sort order. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Alvaro Tejada Galindo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 14:21:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035384#M718124</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T14:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: With which algorithm works the SORT statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035385#M718125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your reply. One Question is left. What algorithm is used e.g. Bubble Sort or Quick Sort or whatever! Or is that one of walldorf secrets!? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 14:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035385#M718125</guid>
      <dc:creator>christian_breitenbach2</dc:creator>
      <dc:date>2007-10-30T14:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: With which algorithm works the SORT statement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035386#M718126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Don't know if it's a secret or not, but if you search for notes related to bubble sort or quicksort, you'll find some information.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 30 Oct 2007 14:55:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/with-which-algorithm-works-the-sort-statement/m-p/3035386#M718126</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-30T14:55:10Z</dc:date>
    </item>
  </channel>
</rss>

