Demonstration of lambda functions using the sort function