SAP Ariba interview question

Write an algorithm to display a tree of data in multiple sorting orders.