Print sorted list