ABAP Keyword Documentation →  ABAP − Short Reference → 

SORT itab - Short Reference

Reference

Syntax

SORT itab [STABLE]
          { { [ASCENDING|DESCENDING]
              [AS TEXT]
              [BY {comp1 [ASCENDING|DESCENDING] [AS TEXT]}
                  {comp2 [ASCENDING|DESCENDING] [AS TEXT]}
                  ... ] }
          | { [BY (otab)] }
          | { [BY expr] } }.


Effect

Sorts an internal table itab by the primary table key or a specified sort key.

Additions