$ 0 0 If you are using Standard SAP Form to print the TO then define the sort profile in the screen as shown below or if you using the custom form then you need to ask your developer to build the logic for sorting