Added sorted result using lambdas