

The addition STABLE can be used for stable sorting. The order can be different depending on the platform or when sorted multiple times. Sort keys is not preserved when they are sorted. Sorting is unstable by default, which means that the relative order of rows that do not have different If this is known statically, the syntax check produces a warning.

If the primary table key of a standard table isĮmpty, no sort takes place. Keys, the sort is prioritized according to the order of the key fields in the row type of the table. Key fields are specified in the table definition.

The priority of the sort is based on the order in which the If no explicit sort key is entered using the addition BY, the internal table itab is sorted by the The sizes of other component types are compared using the corresponding rules for Textual sorting of character-like components can be performed using the addition AS TEXT. Numeric and byte-like components are sorted by their values.Ĭharacter-like components are sorted by default by their binary representation Here, default sizes are compared using the general This statement sorts an internal table itab by the size of its components. Processing Statements for Internal Tables → SAP NetWeaver AS ABAP Release 752, ©Copyright 2017 SAP AG.
