function drupal_sort_title
7.x common.inc | drupal_sort_title($a, $b) |
Array sorting callback; sorts elements by 'title' key.
1 string reference to 'drupal_sort_title'
- system_admin_index in drupal-7.x/
modules/ system/ system.admin.inc - Menu callback; prints a listing of admin tasks, organized by module.
File
- drupal-7.x/
includes/ common.inc, line 6370 - Common functions that many Drupal modules will need to reference.
Code
function drupal_sort_title($a, $b) {
if (!isset($b['title'])) {
return -1;
}
if (!isset($a['title'])) {
return 1;
}
return strcasecmp($a['title'], $b['title']);
}