I have this array and I want to sort it by the "Category" field. How can I do it?
[
{ amount: 3200, vendor: "Elevation", category: "Salary" },
{ amount: -7, vendor: "Runescape", category: "Entertainment" },
{ amount: -20, vendor: "Subway", category: "Food" },
{ amount: -98, vendor: "La Baguetterie", category: "Food" }
]