How to customize sales order report to print out by category grouping

Anyone knows how to customize a sales order printout to print by category order instead of the order that we type them in? This could help when we check the order before it leaves for delivery.