1 drupal.inc | drupal_sort_title($a, $b) |
Sorts a structured array by 'title' key (no # prefix).
Deprecated
since 1.0.0
See also
Related topics
File
- core/
includes/ drupal.inc, line 1366 - Contains constants and function wrappers for Drupal 7.x compatibility.
Code
function drupal_sort_title($a, $b) {
watchdog_deprecated_function('drupal', __FUNCTION__);
if (!isset($b['title'])) {
return -1;
}
if (!isset($a['title'])) {
return 1;
}
return strcasecmp($a['title'], $b['title']);
}