1 views_ui.admin.inc _views_sort_types($a, $b)

File

core/modules/views_ui/views_ui.admin.inc, line 4845
Admin page callbacks for the Views UI module.

Code

function _views_sort_types($a, $b) {
  $a_group = backdrop_strtolower($a['group']);
  $b_group = backdrop_strtolower($b['group']);
  if ($a_group != $b_group) {
    return $a_group < $b_group ? -1 : 1;
  }

  $a_title = backdrop_strtolower($a['title']);
  $b_title = backdrop_strtolower($b['title']);
  if ($a_title != $b_title) {
    return $a_title < $b_title ? -1 : 1;
  }

  return 0;
}