REPORT demo_int_tables_sort_text.
DATA: BEGIN OF line,
        text(6) TYPE c,
        xtext(160) TYPE x,
      END OF line.

DATA itab LIKE HASHED TABLE OF line WITH UNIQUE KEY text.

line-text = 'Muller'.
CONVERT text line-text INTO SORTABLE CODE line-xtext.
INSERT line INTO TABLE itab.

line-text = 'Möller'.
CONVERT text line-text INTO SORTABLE CODE line-xtext.
INSERT line INTO TABLE itab.

line-text = 'Moller'.
CONVERT text line-text INTO SORTABLE CODE line-xtext.
INSERT line INTO TABLE itab.

line-text = 'Miller'.
CONVERT text line-text INTO SORTABLE CODE line-xtext.
INSERT line INTO TABLE itab.

SORT itab.
PERFORM loop_at_itab.

SORT itab BY xtext.
PERFORM loop_at_itab.

SORT itab AS text.
PERFORM loop_at_itab.

FORM loop_at_itab.
  LOOP AT itab INTO line.
    WRITE / line-text.
  ENDLOOP.
  SKIP.
ENDFORM.