function _mongodb_watchdog_sort_top in MongoDB 7
Same name and namespace in other branches
- 6 mongodb_watchdog/mongodb_watchdog.admin.inc \_mongodb_watchdog_sort_top()
Callback for usort() to sort top entries returned from a group query.
Parameters
array $x: The first value to compare.
array $y: The second value to compare.
Return value
bool The comparison result.
1 string reference to '_mongodb_watchdog_sort_top'
- mongodb_watchdog_page_top in mongodb_watchdog/
mongodb_watchdog.admin.inc - Page callback for "admin/reports/[access-denied|page-not-found]".
File
- mongodb_watchdog/
mongodb_watchdog.admin.inc, line 588 - Settings for mongodb. Moved back to module file.
Code
function _mongodb_watchdog_sort_top(array $x, array $y) {
$cx = $x['count'];
$cy = $y['count'];
return $cy - $cx;
}