Added sorted output