@Frank Lucas If you want to order a multidimensional array by any
key so you can you usort() function
If you want to sort you array by "value" index in descending order so try the below code and understand it
<?php
$lines = array(array("value"=>1,"id"=>0), array("value"=>10,"id"=>1));
function order($a, $b){
if ($a["value"] == $b["value"]) { //here pass your index name
return 0;
}
return ($a["value"] > $b["value"]) ? -1 : 1; // this your key "value" will be in descending order as requirement
//but if you want to change this order from descending to Ascending order so just change the -1 and 1 place in above condition
}
usort($lines,"order");
print_r($lines);
?>
It will solve your problem (y)