function _views_sort_types in Views (for Drupal 7) 6.2
Same name and namespace in other branches
- 8.3 views_ui/admin.inc \_views_sort_types()
- 6.3 includes/admin.inc \_views_sort_types()
- 7.3 includes/admin.inc \_views_sort_types()
1 string reference to '_views_sort_types'
- views_fetch_fields in includes/
admin.inc - Fetch a list of all fields available for a given base type.
File
Code
function _views_sort_types($a, $b) {
if ($a['group'] != $b['group']) {
return $a['group'] < $b['group'] ? -1 : 1;
}
if ($a['title'] != $b['title']) {
return $a['title'] < $b['title'] ? -1 : 1;
}
return 0;
}