You are here

function _views_sort_types in Views (for Drupal 7) 6.2

Same name and namespace in other branches
  1. 8.3 views_ui/admin.inc \_views_sort_types()
  2. 6.3 includes/admin.inc \_views_sort_types()
  3. 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

includes/admin.inc, line 3034
admin.inc Provides the Views' administrative interface.

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;
}