I have an array that looks like this:
"lines":[
{"value":1,"id":0},
{"value":10,"id":1}
]
My goal is to always get the one with value: 10 as first so I want to sort it with ksort maybe but I am not sure
This is my goal:
"lines":[
{"value":10,"id":1},
{"value":1,"id":0}
]
Anyone who can help many thanks!