It would seem that you would need to build an array with 'kind' as a dimension. So something like this:
$data_array = array();
for ($i = 0; $i <count($data['results']); $i++) {
$kind = $data['results'][$i]['kind'];
$data_array[$kind][] = $data['results'][$i];
}
You could then work with the array like this:
foreach ($data_array as $kind => $kind_array) {
// echo out any category headers based on $kind
foreach($kind_array as $item) {
// echo out each individual item within this kind group
}
}