private function DatabaseDataCollector::orderQueryByTime in Devel 4.x
Same name and namespace in other branches
- 8.3 webprofiler/src/DataCollector/DatabaseDataCollector.php \Drupal\webprofiler\DataCollector\DatabaseDataCollector::orderQueryByTime()
- 8 webprofiler/src/DataCollector/DatabaseDataCollector.php \Drupal\webprofiler\DataCollector\DatabaseDataCollector::orderQueryByTime()
- 8.2 webprofiler/src/DataCollector/DatabaseDataCollector.php \Drupal\webprofiler\DataCollector\DatabaseDataCollector::orderQueryByTime()
Parameters
$a:
$b:
Return value
int
File
- webprofiler/
src/ DataCollector/ DatabaseDataCollector.php, line 256
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;
}