function drupal_sort_title

Array sorting callback; sorts elements by 'title' key.

1 string reference to 'drupal_sort_title'
system_admin_index in modules/system/system.admin.inc
Menu callback; prints a listing of admin tasks, organized by module.

File

includes/common.inc, line 6673

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']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.