function DatabaseDataCollector::orderQueryByTime
Parameters
$a:
$b:
Return value
int
File
-
webprofiler/
src/ DataCollector/ DatabaseDataCollector.php, line 255
Class
- DatabaseDataCollector
- Class DatabaseDataCollector
Namespace
Drupal\webprofiler\DataCollectorCode
private function orderQueryByTime($a, $b) {
$at = $a['time'];
$bt = $b['time'];
if ($at == $bt) {
return 0;
}
return $at < $bt ? 1 : -1;
}