Output sorted list