Sort array by object property

Write a function that takes an array of objects as argument. Sort the array by property b in ascending order. Return the sorted array
JavaScript
Console