9
Ich habe eine Reihe von Objekten und ich möchte nach tieferen Feld sortieren. Wie kann ich das machen?Js lodash sortiere nach tieferen Feld
var array =
{
"id": 27,
"name": "La Primita Product",
"lottery": {
"id": 1,
"name": "La Primitiva",
"jackpotAmount": 10000,
}
},
{
"id": 28,
"name": "La Primita Product",
"lottery": {
"id": 1,
"name": "La Primitiva",
"jackpotAmount": 10000,
}
Wie kann ich nach lottery.jackpotAmount sortieren?