Suppose we have the following data structure:
var lowestPricesCars =
{
HondaC:
{
owner: "",
price: 45156
},
FordNew:
{
owner: "",
price:4100
},
HondaOld:
{
owner: "",
price: 45745
},
FordOld:
{
owner: "",
price: 34156
},
}
How can I sort the cars based on their prices?
If you need clarification on the question, feel free to leave a comment.
Thank you!