[
{
"clubName": "FC Nightmare",
"win": 0,
"played": 1,
"draw": 0,
"lose": 1,
"gs": 1,
"ga": 2,
"gd": -1,
"points": 0
},
{
"clubName": "Manchester City",
"win": 1,
"played": 1,
"draw": 0,
"lose": 0,
"gs": 3,
"ga": 2,
"gd": 1,
"points": 3
},
{
"clubName": "Inter Milan",
"win": 0,
"played": 1,
"draw": 0,
"lose": 1,
"gs": 2,
"ga": 3,
"gd": -1,
"points": 0
},
{
"clubName": "AC Milan",
"win": 1,
"played": 1,
"draw": 0,
"lose": 0,
"gs": 2,
"ga": 1,
"gd": 1,
"points": 3
}
]
i have this array.i want to sort this array by points.how to do that in laravel??
i've tried this:
array_multisort(array_column($point_table,'points'),$point_table);
but it doesn't work..