protected function _orderUses($contents)
{
preg_match_all('/[\\t ]*\\buse .+;[\\n]/', $contents, $matches);
$contents = str_replace($matches[0], '', $contents);
array_walk($matches[0], create_function('&$val', '$val = ltrim($val);'));
$matches[0] = array_unique($matches[0]);
sort($matches[0]);
return preg_replace('/(namespace [\\S+]+;[\\n]{2})/', '\\1' . implode('', $matches[0]), $contents);
}