I want to sort a mulitdimensional array according to a field in the inner array, like this:

```
$result = array(
  array("first" => 1, "second" => 5),
  array("first" => 3, "second" => 8),
  array("first" => 6, "second" => 7),
  array("first" => 6, "second" => 1)
);

sort($result,"second");

/*
$result = array(
  array("first" => 6, "second" => 1),
  array("first" => 1, "second" => 5),
  array("first" => 6, "second" => 7),
  array("first" => 3, "second" => 8)
);
*/

```

Is there something like the intended sort function here in PHP or do I have to reimplement that?