Hi ts,
The above code used for sorting should work as you expected.But I suspect that the sort logic of field 'AUFNR' is not executing / not reaching. Check the column name of HEADER1 column. It might be something else.
To make sure: check in debugging that the logic of AUFNR field gets reached.
Hope this helps you.
Regards,
Rama